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://192.168.200.83:8085/',
                changeOrigin: true,
                secure: false,
                pathRewrite: {
                    '^/serve': '',
                },
            },
            '/data': {
                target: 'http://192.168.200.87:9003',
                changeOrigin: true,
                secure: false,
                pathRewrite: {
                    '^/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',
}