From c96ed0564d3795d170fa66b09f6f8f853c17a6a8 Mon Sep 17 00:00:00 2001 From: ljf Date: Sun, 12 Sep 2021 13:37:45 +0200 Subject: [PATCH] [fix] Live reload --- app/vue.config.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/vue.config.js b/app/vue.config.js index 1ad121e6..775f0155 100644 --- a/app/vue.config.js +++ b/app/vue.config.js @@ -1,4 +1,5 @@ const webpack = require('webpack') +const fs = require('fs'); const dateFnsLocales = [ 'ar', @@ -58,6 +59,7 @@ module.exports = { }, publicPath: '/yunohost/admin', devServer: { + public: fs.readFileSync('/etc/yunohost/current_host', 'utf8'), https: false, disableHostCheck: true, proxy: { @@ -68,7 +70,9 @@ module.exports = { } }, watchOptions: { - ignored: /node_modules/ - } + ignored: /node_modules/, + aggregateTimeout: 300, + poll: 1000 + }, } }