代码拉取完成,页面将自动刷新
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
productionSourceMap: false,
transpileDependencies: true,
lintOnSave: false, // 关闭eslint
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
devServer: {
historyApiFallback: false,
allowedHosts: "all", // 花生壳显示Invalid Host header让其不检查hostname。
https: false, // https:{type:Boolean}
open: false, // 配置自动启动浏览器
// proxy: 'http://localhost:4000' // 配置跨域处理,只有一个代理
port: 8893,
// host: 'wxtest.com',
// proxy: {
// '/air': {
// target: 'http://106.13.30.18:8893/',
// // target: 'http://192.168.1.85/',
// changeOrigin: true,
// pathRewrite: {
// '^/air': ''
// }
// }
// } // 配置多个代理,
},
css: {
loaderOptions: {
less: {
additionalData: '@import url("~@/assets/global.less");'
}
}
},
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。