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