初始化项目

This commit is contained in:
18500206848
2024-02-02 14:51:50 +08:00
parent dc7051417b
commit 12664d0204
681 changed files with 1 additions and 142886 deletions

View File

@@ -1,42 +0,0 @@
module.exports = {
//路径前缀
publicPath: '/manage/',
outputDir: 'dist',
lintOnSave: true,
productionSourceMap: false,
chainWebpack: (config) => {
//忽略的打包文件
config.externals({
'vue': 'Vue',
'vue-router': 'VueRouter',
'vuex': 'Vuex',
'axios': 'axios',
'element-ui': 'ELEMENT',
});
const entry = config.entry('app');
entry.add('babel-polyfill').end();
entry.add('classlist-polyfill').end();
entry.add('@/mock').end();
},
devServer: {
port: 1888,
proxy: {
'/api': {
//本地服务接口地址
target: 'http://localhost:8000',
ws: true,
pathRewrite: {
'^/api': '/'
}
},
'/api/map': {
//本地服务接口地址
target: 'http://apis.map.qq.com',
ws: true,
pathRewrite: {
'^/api/map': '/'
}
}
}
}
};