You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
module . exports = {
productionSourceMap : false ,
publicPath : process . env . NODE _ENV === 'production' ? './' : '/' ,
lintOnSave : false ,
devServer : {
open : process . env . VUE _APP _OPEN === 'false' ? false : true , // 自动打开浏览器
host : '0.0.0.0' , // 真机模拟,使用
port : process . env . VUE _APP _PORT , // 前台代理端口号
https : false , // https: {type: Booleam}
hotOnly : false , // 热更新
proxy : {
// 设置代理
'/gitee' : {
target : 'https://gitee.com' ,
ws : true ,
changeOrigin : true ,
pathRewrite : {
'^/gitee' : '' ,
} ,
} ,
} ,
} ,
chainWebpack ( config ) {
// 移除打包后 index.html 所有打包好的文件都预加载行为
config . plugins . delete ( 'preload' ) ;
config . plugins . delete ( 'prefetch' ) ;
} ,
configureWebpack : {
output : {
filename : ` js/[name]. ${ new Date ( ) . getTime ( ) } .js ` ,
chunkFilename : ` js/[name]. ${ new Date ( ) . getTime ( ) } .js ` ,
} ,
} ,
css : {
extract : {
filename : ` css/[name]. ${ new Date ( ) . getTime ( ) } .css ` ,
chunkFilename : ` css/[name]. ${ new Date ( ) . getTime ( ) } .css ` ,
} ,
} ,
} ;