1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- module.exports = {
- devServer: {
- proxy: {
- "/data": {
- target: "http://192.168.200.87:9003",
- changeOrigin: true,
- secure: false,
- pathRewrite: {
- "^/data": "",
- },
- },
- "/wdfn": {
- target: "http://map.wanda.cn",
- changeOrigin: true,
- pathRewrite: {
- "^/wdfn": "/editor/fmap",
- },
- },
- "/serve": {
- target: "http://192.168.200.87:8088",
- changeOrigin: true,
- pathRewrite: {
- "^/serve": "",
- },
- },
- },
- hot: true,
- // 关闭esline
- overlay: {
- warnings: false,
- errors: false,
- },
- },
- 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: "/wandaBmGuide",
- // 打包名称
- outputDir: "wandaBmGuide",
- // 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录
- assetsDir: "static",
- }
|