1.部署應用包時的基本 URL?(baseUrl或publicPath)
baseUrl在vue-cli 3.3 時棄用了,自此之后使用publicPath
默認:'/'
module.exports ={// baseUrl:"/",publicPath: './',
)
2.打包時輸出的文件位置:outputDir
默認:?'dist'
module.exports = {outputDir: 'dist', // 輸出文件目錄
}
3.打包時生成的靜態資源文件夾:assetsDir
默認:' '
module.exports = {assetsDir: 'assets',
}
4.指定生成的?html
?的文件名:indexPath
默認:'index.html'
module.exports = {indexPath: 'index.html'
}
5.productionSourceMap 生產打包是否開啟SourceMap
默認:true
為false時? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 為true時
。??