[fix] Live reload

This commit is contained in:
ljf 2021-09-12 13:37:45 +02:00
parent 30fe4e7991
commit c96ed0564d

View file

@ -1,4 +1,5 @@
const webpack = require('webpack') const webpack = require('webpack')
const fs = require('fs');
const dateFnsLocales = [ const dateFnsLocales = [
'ar', 'ar',
@ -58,6 +59,7 @@ module.exports = {
}, },
publicPath: '/yunohost/admin', publicPath: '/yunohost/admin',
devServer: { devServer: {
public: fs.readFileSync('/etc/yunohost/current_host', 'utf8'),
https: false, https: false,
disableHostCheck: true, disableHostCheck: true,
proxy: { proxy: {
@ -68,7 +70,9 @@ module.exports = {
} }
}, },
watchOptions: { watchOptions: {
ignored: /node_modules/ ignored: /node_modules/,
} aggregateTimeout: 300,
poll: 1000
},
} }
} }