二级目录部署
This commit is contained in:
@@ -12,9 +12,8 @@ const port = 8013 // 端口配置
|
||||
// All configuration item explanations can be find in https://cli.vuejs.org/config/
|
||||
module.exports = {
|
||||
// hash 模式下可使用
|
||||
// publicPath: process.env.NODE_ENV === 'development' ? '/' : './',
|
||||
publicPath: '/',
|
||||
outputDir: 'dist',
|
||||
publicPath: process.env.NODE_ENV === 'development' ? '/' : '/demo/',
|
||||
outputDir: 'demo',
|
||||
assetsDir: 'static',
|
||||
lintOnSave: process.env.NODE_ENV === 'development',
|
||||
productionSourceMap: false,
|
||||
|
||||
Reference in New Issue
Block a user