Skip to content

Commit 26887a3

Browse files
author
wanyu.cwy
committed
build: add hmr
1 parent 1fe6849 commit 26887a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/webpack.demo.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ const webpackConfig = {
3333
devServer: {
3434
host: '0.0.0.0',
3535
port: 8085,
36-
publicPath: '/'
36+
publicPath: '/',
37+
hot: true
3738
},
3839
performance: {
3940
hints: false
@@ -100,6 +101,7 @@ const webpackConfig = {
100101
]
101102
},
102103
plugins: [
104+
new webpack.HotModuleReplacementPlugin(),
103105
new HtmlWebpackPlugin({
104106
template: './examples/index.tpl',
105107
filename: './index.html',

0 commit comments

Comments
 (0)