Sfoglia il codice sorgente

修复 打包失败的问题

feat
JinxChen 2 anni fa
parent
commit
d57be04b23
1 ha cambiato i file con 2 aggiunte e 17 eliminazioni
  1. +2
    -17
      vue.config.js

+ 2
- 17
vue.config.js Vedi File

@@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2020-04-15 10:00:32
* @LastEditTime: 2022-05-11 15:35:24
* @LastEditTime: 2022-05-23 11:11:49
* @LastEditors: JinxChen
* @Description: In User Settings Edit
* @FilePath: \AntpayFrontEnd\vue.config.js
@@ -10,26 +10,11 @@ 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',
},
// 再配置各个子页面:登录后课表查询页
schedule: {
entry: './src/pages/schedule/schedule.js',
template: './public/schedule.html',
title: '高德地图demo'
},
},
devServer: {
port: port,
open: true,


Loading…
Annulla
Salva