Enable live reloading for browsersync
This commit is contained in:
parent
ac903b87e0
commit
4c6dfbf2c5
4 changed files with 718 additions and 55 deletions
|
@ -1,8 +1,6 @@
|
|||
const path = require("path");
|
||||
const common = require("./webpack.common");
|
||||
const merge = require("webpack-merge");
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const ConcatPlugin = require('webpack-concat-plugin');
|
||||
|
||||
module.exports = merge(common, {
|
||||
mode: "development",
|
||||
|
@ -28,15 +26,5 @@ module.exports = merge(common, {
|
|||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
filename: 'index.html',
|
||||
template: 'index.html'
|
||||
}),
|
||||
new ConcatPlugin({
|
||||
name: 'scripts/apploader.js',
|
||||
filesToConcat: ['./standalone.js', './scripts/apploader.js']
|
||||
})
|
||||
]
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue