From cfc31fc9d8e45da90f242786f40e54464f786eb6 Mon Sep 17 00:00:00 2001 From: nineven Date: Sat, 10 Apr 2021 17:37:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_client/vue.config.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/fir_client/vue.config.js b/fir_client/vue.config.js index a44fd0a..e9ce6bd 100644 --- a/fir_client/vue.config.js +++ b/fir_client/vue.config.js @@ -54,7 +54,16 @@ module.exports = { }, productionSourceMap: false, - + configureWebpack: { + // provide the app's title in webpack's name field, so that + // it can be accessed in index.html to inject the correct title. + name: 'εΊ”η”¨εˆ†ε‘', + resolve: { + alias: { + '@': resolve('src') + } + } + }, chainWebpack: config => { if (!IS_PROD) { @@ -71,7 +80,6 @@ module.exports = { }) } - config.resolve.alias.set('@',resolve("src")); config.optimization.splitChunks({ cacheGroups: {