Skip to content

Commit c5fa266

Browse files
author
Guillaume Chau
committed
fix(demo): webpack HMR
1 parent 8506be9 commit c5fa266

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs-src/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const VueLoaderPlugin = require('vue-loader/lib/plugin')
44

55
module.exports = {
66
mode: 'development',
7-
entry: './src/main.js',
7+
entry: ['@babel/polyfill', './src/main.js'],
88
output: {
99
path: path.resolve(__dirname, '../docs'),
1010
publicPath: '/',
@@ -56,6 +56,7 @@ module.exports = {
5656
devServer: {
5757
historyApiFallback: true,
5858
contentBase: path.join(__dirname, '..', 'docs'),
59+
disableHostCheck: true,
5960
},
6061
performance: {
6162
hints: false,

0 commit comments

Comments
 (0)