From 8c06a7a7ecba10c72893f8195a1cd9e0e77a0cbe Mon Sep 17 00:00:00 2001 From: Trirst <abeces968@gmail.com> Date: Tue, 27 Jul 2021 16:53:46 +0700 Subject: [PATCH] Configure webpack's dev server to ignore unneeded files --- vue.config.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/vue.config.js b/vue.config.js index cb11310..da48aa6 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,9 +1,12 @@ module.exports = { - devServer: { - proxy: 'http://localhost:7777/', + devServer: { + proxy: "http://localhost:7777/", + watchOptions: { + ignored: /\.#|node_modules|~$/, }, - configureWebpack: { - devtool: 'source-map', - }, - publicPath: "/web/", -} \ No newline at end of file + }, + configureWebpack: { + devtool: "source-map", + }, + publicPath: "/web/", +}; -- GitLab