1 Star 0 Fork 0

bai/adventure-task-log-vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 919 Bytes
一键复制 编辑 原始数据 按行查看 历史
bai 提交于 2025-01-16 18:26 +08:00 . first commit
const { defineConfig } = require('@vue/cli-service')
const path = require('path')
const { NODE_ENV, VUE_APP_TITLE = '' } = process.env
const config = {
transpileDependencies: false,
productionSourceMap: NODE_ENV === 'production',
chainWebpack: (setting) => {
setting.plugin('html').tap((args) => {
args[0].APP_TITLE = VUE_APP_TITLE
return args
})
},
css: {
loaderOptions: {
less: {
lessOptions: {
javascriptEnabled: true,
}
}
}
},
pluginOptions: {
'style-resources-loader': {
preProcessor: 'less',
patterns: [
path.resolve(__dirname, 'src/styles/variable.less')
]
}
},
devServer: {
open: true,
port: 8080,
host: 'localhost',
proxy: {
'/adventure': {
target: 'http://localhost:8082',
changeOrigin: true
}
}
}
}
module.exports = defineConfig(config)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bai1221/adventure-task-log-vue.git
git@gitee.com:bai1221/adventure-task-log-vue.git
bai1221
adventure-task-log-vue
adventure-task-log-vue
master

搜索帮助