|
|
@@ -1,7 +1,7 @@ |
|
|
|
/* |
|
|
|
* @Author: your name |
|
|
|
* @Date: 2020-04-15 10:00:32 |
|
|
|
* @LastEditTime: 2022-05-11 14:56:49 |
|
|
|
* @LastEditTime: 2022-05-11 15:35:24 |
|
|
|
* @LastEditors: JinxChen |
|
|
|
* @Description: In User Settings Edit |
|
|
|
* @FilePath: \AntpayFrontEnd\vue.config.js |
|
|
@@ -10,29 +10,25 @@ const port = process.env.port || process.env.npm_config_port || 8080;/* 7788 */ |
|
|
|
|
|
|
|
module.exports = { |
|
|
|
// 注意: 多页面配置 不再使用全路径,单页面时可以开启 |
|
|
|
publicPath: './', |
|
|
|
/* publicPath: './', */ |
|
|
|
outputDir: 'dist', |
|
|
|
// assetsDir: 'static', |
|
|
|
// lintOnSave: process.env.NODE_ENV === 'development', |
|
|
|
productionSourceMap: false, |
|
|
|
// 多页面配置 |
|
|
|
pages: { |
|
|
|
// 先配置主页 |
|
|
|
// 先配置主页 |
|
|
|
index: { |
|
|
|
entry: './src/main.js', |
|
|
|
template: './public/index.html', |
|
|
|
/* title: '用户登录' */ |
|
|
|
chunks: ['chunk-vendors', 'chunk-common', 'index'], |
|
|
|
subpage: 'src/main.js' |
|
|
|
}, |
|
|
|
// 再配置各个子页面:登录后课表查询页 |
|
|
|
gaode: { |
|
|
|
entry: './src/pages/gaode.js', |
|
|
|
template: './public/gaode.html', |
|
|
|
title: '高德地图demo', |
|
|
|
/* chunks: ['chunk-vendors', 'chunk-common', 'gaode'], |
|
|
|
subpage: 'src/pages/gaode.js' */ |
|
|
|
} |
|
|
|
schedule: { |
|
|
|
entry: './src/pages/schedule/schedule.js', |
|
|
|
template: './public/schedule.html', |
|
|
|
title: '高德地图demo' |
|
|
|
}, |
|
|
|
}, |
|
|
|
devServer: { |
|
|
|
port: port, |
|
|
|