1 Star 4 Fork 0

liuxingyu01 / tinywind-front

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 955 Bytes
一键复制 编辑 原始数据 按行查看 历史
liuxingyu01 提交于 2021-12-22 15:09 . 第一次提交入库
const path = require('path')
const resolve = function(dir) {
return path.join(__dirname, dir)
}
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/tinywind-front/' : '/',
outputDir: 'dist',
assetsDir: 'static',
lintOnSave: true, // 是否开启eslint保存检测
productionSourceMap: false, // 是否在构建生产包时生成sourcdeMap
chainWebpack: config => {
config.resolve.alias
.set('@', resolve('src'))
.set('views', resolve('src/views'))
config.optimization.runtimeChunk('single')
},
devServer: {
host: 'localhost',
port: '8080',
hot: true,
open: true,
overlay: {
warning: false,
error: true
},
proxy: {
[process.env.VUE_APP_BASE_API]: {
target: process.env.VUE_APP_BASE_API,
changeOrigin: true,
secure: false,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
}
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/leisureLXY/tinywind-front.git
git@gitee.com:leisureLXY/tinywind-front.git
leisureLXY
tinywind-front
tinywind-front
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891