【类 型】:feat
【主 题】:改用自定义的 配置文件 【描 述】: [原因]:Easycom 需要在配置文件里面 做初始化的设置 [过程]: [影响]: 【结 束】 # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
526a5780ae
commit
97f6fa7125
37
vue.config.js
Normal file
37
vue.config.js
Normal file
@ -0,0 +1,37 @@
|
||||
module.exports = {
|
||||
// 开发服务器配置
|
||||
devServer: {
|
||||
//open: true,//run时浏览器打开
|
||||
port: 8080,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:3000',
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/api': ''
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// 构建时的配置
|
||||
outputDir: 'dist', // 输出目录
|
||||
assetsDir: 'static', // 静态资源目录
|
||||
publicPath: '/', // 部署应用包时的基本 URL
|
||||
|
||||
// 生产环境是否生成 sourceMap 文件
|
||||
productionSourceMap: true,
|
||||
|
||||
// CSS 相关选项
|
||||
css: {
|
||||
sourceMap: true,
|
||||
loaderOptions: {
|
||||
css: {
|
||||
// options here will be passed to css-loader
|
||||
},
|
||||
sass: {
|
||||
// options here will be passed to sass-loader
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user