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