|
|
@@ -14,6 +14,7 @@ const name = defaultSettings.title; // page title
|
|
|
// You can change the port by the following method:
|
|
|
// port = 9527 npm run dev OR npm run dev --port = 9527
|
|
|
const port = process.env.port || process.env.npm_config_port || 9527; // dev port
|
|
|
+const baseURL =process.env.VUE_BASE_URL || '/'
|
|
|
|
|
|
// All configuration item explanations can be find in https://cli.vuejs.org/config/
|
|
|
module.exports = {
|
|
|
@@ -25,7 +26,7 @@ module.exports = {
|
|
|
* Detail: https://cli.vuejs.org/config/#publicpath
|
|
|
*/
|
|
|
transpileDependencies: ['element-ui', 'vuex', 'js-cookie', '@babel', 'resize-detector'],
|
|
|
- publicPath: '/',
|
|
|
+ publicPath: baseURL,
|
|
|
outputDir: 'dist',
|
|
|
assetsDir: 'static',
|
|
|
lintOnSave: process.env.NODE_ENV === 'development',
|