Integrated Template loading using html-loader

This commit is contained in:
Indrajith K L
2017-11-02 16:02:24 +05:30
parent a7ccf2688f
commit 2249a5f79f
4 changed files with 23 additions and 14 deletions

View File

@@ -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
}
};