diff options
author | Indrajith K L | 2017-11-02 16:02:24 +0530 |
---|---|---|
committer | Indrajith K L | 2017-11-02 16:02:24 +0530 |
commit | 2249a5f79ff44773f6e1774028861e130d8fe77f (patch) | |
tree | 4240b8a12eba69ea2f58844ab500c222b62828aa /webpack.config.js | |
parent | a7ccf2688f90f28754b8c61fa0b712d6465d2796 (diff) | |
download | es6-backbone-2249a5f79ff44773f6e1774028861e130d8fe77f.tar.gz es6-backbone-2249a5f79ff44773f6e1774028861e130d8fe77f.tar.bz2 es6-backbone-2249a5f79ff44773f6e1774028861e130d8fe77f.zip |
Integrated Template loading using html-loader
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/webpack.config.js b/webpack.config.js index a251411..e6ed2ee 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,13 +7,23 @@ module.exports = { }, module: { rules: [{ - test: /\.js$/, - exclude: /node_modules/, - use: 'babel-loader' - }] + test: /\.js$/, + exclude: /node_modules/, + use: 'babel-loader' + }, + { + test: /\.html$/, + use: [{ + loader: 'html-loader', + options: { + minimize: true + } + }], + } + ] }, - devServer: { - contentBase: [ './' ], - watchContentBase: true - } + devServer: { + contentBase: ['./'], + watchContentBase: true + } }; |