chore: Add hmr (#15221)

pull/15238/head
Simona 2019-04-23 18:01:41 +08:00 committed by hetech
parent 42c2e2371d
commit 865229e457
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,8 @@ const webpackConfig = {
devServer: { devServer: {
host: '0.0.0.0', host: '0.0.0.0',
port: 8085, port: 8085,
publicPath: '/' publicPath: '/',
hot: true
}, },
performance: { performance: {
hints: false hints: false
@ -100,6 +101,7 @@ const webpackConfig = {
] ]
}, },
plugins: [ plugins: [
new webpack.HotModuleReplacementPlugin(),
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
template: './examples/index.tpl', template: './examples/index.tpl',
filename: './index.html', filename: './index.html',