module.exports = { css: { loaderOptions: { css: { // options here will be passed to css-loader }, // postcss: { // // options here will be passed to postcss-loader // plugins: [require('postcss-px2rem')({ // remUnit: 75 // })] // } } }, pwa: { iconPaths: { favicon32: 'favicon.ico', favicon16: 'favicon.ico', appleTouchIcon: 'favicon.ico', maskIcon: 'favicon.ico', msTileImage: 'favicon.ico' } }, //http://www.metavatar.cc/ devServer: { overlay: { warnings: false, errors: false }, proxy: { '/api': { target: 'http://www.metavatar.cc/api', changeOrigin: true, pathRewrite: { '^/api': '' }, }, } }, lintOnSave: false, publicPath: './', // 打包后引用的资源路径 }