[代码完善](v2.5): v2.5 代码优化

增加对 hash 模式的支持,hash 模式的部署方式文档已更新
This commit is contained in:
ZhengJie
2020-06-06 14:35:47 +08:00
parent 17aefdd1b4
commit 11ae4ad994
3 changed files with 5 additions and 2 deletions

View File

@@ -11,6 +11,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',
assetsDir: 'static',