12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- module.exports = {
- devServer: {
- port: 8091,
- // 关闭esline
- overlay: {
- warnings: false,
- errors: false,
- },
- proxy: {
- '/wdfn': {
- target: 'http://map.wanda.cn',
- changeOrigin: true,
- pathRewrite: {
- '^/wdfn': '/editor',
- },
- },
- '/serve': {
- // target: 'http://192.168.200.87:8088/',
- // target: 'http://10.199.143.129:8080',
- target: 'http://60.205.177.43:8080', //阿里云
- changeOrigin: true,
- secure: false,
- pathRewrite: {
- '^/serve': '',
- },
- },
- '/data': {
- // target: "http://10.199.143.126",
- target: 'http://60.205.177.43', //阿里云
- changeOrigin: true,
- secure: false,
- pathRewrite: {
- '^/data': '/data',
- },
- },
- },
- },
- chainWebpack: (config) => {
- const svgRule = config.module.rule('svg')
- svgRule.uses.clear()
- svgRule
- .use('babel-loader')
- .loader('babel-loader')
- .end()
- .use('vue-svg-loader')
- .loader('vue-svg-loader')
- },
- lintOnSave: false,
- // publicPath: '/dist',
- publicPath: '/wandaEditer',
- // 打包名称
- outputDir: 'wandaEditer',
- // 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录
- assetsDir: 'static',
- }
|