module.exports = { outputDir: 'dist/build/h5', assetsDir: 'static', publicPath: process.env.NODE_ENV === 'production' ? './' : '/', productionSourceMap: false, css: { extract: true, sourceMap: false }, devServer: { port: 8080, host: '0.0.0.0', open: false, disableHostCheck: true, overlay: { warnings: false, errors: true }, proxy: { '/mini': { target: 'http://localhost:8123', changeOrigin: true }, '/martial': { target: 'http://localhost:8123', changeOrigin: true } } }, chainWebpack: config => { if (process.env.NODE_ENV === 'production') { config.performance.hints(false) } config.module .rule('vue') .use('vue-loader') .tap(options => { return options }) } }