1 Star 0 Fork 4

silence/fly-iot-frontend

forked from fly-iot/fly-iot-frontend 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 801 Bytes
一键复制 编辑 原始数据 按行查看 历史
freegolang 提交于 2023-05-20 22:41 . init
const backendUrl = process.env.VUE_APP_SERVER || 'http://localhost:8000'
const isProduction = process.env.NODE_ENV === 'production'
module.exports = {
devServer: {
port: 9999,
proxy: {
'/api/v1': {
target: backendUrl,
changeOrigin: true,
},
},
},
chainWebpack: config => {
if (isProduction) {
config.optimization.minimize(true)
config.optimization.splitChunks({
chunks: 'all'
})
}
},
// Disabled the production environment generates a sourceMap file
productionSourceMap: false,
css: {
// Enable to use the css separation plugin ExtractTextPlugin
extract: true,
// Disable CSS source maps
sourceMap: false,
// Disabled CSS modules for all css / pre-processor files.
modules: false,
},
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/silencegwc/fly-iot-frontend.git
git@gitee.com:silencegwc/fly-iot-frontend.git
silencegwc
fly-iot-frontend
fly-iot-frontend
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385