Explorar o código

chore: Add hmr (#15221)

Simona %!s(int64=6) %!d(string=hai) anos
pai
achega
865229e457
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      build/webpack.demo.js

+ 3 - 1
build/webpack.demo.js

@@ -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',