diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-29 21:32:35 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-29 21:32:35 +0900 |
commit | f1b9c6ba9d33fe1927c4855d4981d88ad73d5818 (patch) | |
tree | ce65ff2c7979d27d86049d5cb13a6d43672817dc /webpack.config.js | |
parent | 21404ad534278eff643be089da9c07882b29da82 (diff) | |
parent | b711678329463d1ec5f2eb9db99f99af5b69895e (diff) |
Merge branch 'iframe-command-line'
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js index 1c80236..f34d203 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,3 +1,4 @@ +var HtmlWebpackPlugin = require('html-webpack-plugin'); var path = require('path'); const src = path.resolve(__dirname, 'src'); @@ -6,7 +7,8 @@ const dist = path.resolve(__dirname, 'build'); module.exports = { entry: { index: path.join(src, 'content'), - background: path.join(src, 'background') + background: path.join(src, 'background'), + 'command-line': path.join(src, 'command-line', 'command-line.js') }, output: { @@ -28,10 +30,22 @@ module.exports = { test: /\.css$/, loader: 'style-loader!css-loader', }, + { + test: /\.scss$/, + loader: 'style-loader!css-loader!sass-loader?sourceMap=true' + }, ] }, resolve: { extensions: [ '.js' ] - } + }, + + plugins: [ + new HtmlWebpackPlugin({ + template: path.join(src, 'command-line', 'command-line.html'), + filename: path.join(dist, 'command-line.html'), + inject: false + }) + ] }; |