chore: update configuration of environment;

This commit is contained in:
chenghongxing 2020-12-13 11:27:54 +08:00
parent 1e19af47b4
commit d0d7ff53af
3 changed files with 4 additions and 2 deletions

1
.env
View File

@ -1,3 +1,4 @@
VUE_APP_PUBLIC_PATH=/
VUE_APP_NAME=Admin VUE_APP_NAME=Admin
VUE_APP_ROUTES_KEY=admin.routes VUE_APP_ROUTES_KEY=admin.routes
VUE_APP_PERMISSIONS_KEY=admin.permissions VUE_APP_PERMISSIONS_KEY=admin.permissions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@ selenium-debug.log
*.njsproj *.njsproj
*.sln *.sln
package-lock.json package-lock.json
.env.production.local

View File

@ -110,7 +110,7 @@ module.exports = {
} }
} }
}, },
publicPath: isProd ? '/vue-antd-admin/' : '/', publicPath: process.env.VUE_APP_PUBLIC_PATH,
outputDir: 'dist', outputDir: 'dist',
assetsDir: 'static', assetsDir: 'static',
productionSourceMap: false productionSourceMap: false