aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js18
1 files changed, 16 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 1c80236..5019366 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')
},
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', 'index.html'),
+ filename: path.join(dist, 'command-line.html'),
+ inject: false
+ })
+ ]
};