From be553787a16b36b997445a2cf40fc6782c0f94ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 1 Dec 2022 11:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/vue.config.js b/vue.config.js index ca5c4cc..249ed1c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -15,11 +15,6 @@ const port = process.env.port || process.env.npm_config_port || 82 // 端口 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions // 这里只列一部分,具体配置参考文档 module.exports = { - configureWebpack: { - externals: { - 'AMap': 'AMap' - }, - }, // 部署生产环境和开发环境下的URL。 // 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上 // 例如 https://www.xinyilu.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.xinyilu.vip/admin/,则设置 baseUrl 为 /admin/。 @@ -57,6 +52,9 @@ module.exports = { } }, configureWebpack: { + externals: { + 'AMap': 'AMap' + }, name: name, resolve: { alias: { @@ -137,4 +135,4 @@ module.exports = { } ) } -} +} \ No newline at end of file