webpack打包配置项
在config.js 中
module.exports = {publicPath: process.env.NODE_ENV === 'production' ? '/' : '/', outputDir: 'dist', assetsDir: 'static',devServer: {port: port,open: false,overlay: {warnings: false,errors: true},proxy: {"/api":{target:'http://localhost:3000', changeOrigin: true,pathRewrite: {"^/api": "/"}},}},configureWebpack:{name: name,resolve: {alias: {'@': resolve('src') }},plugins: [new FileManagerPlugin({events: {onEnd: {delete: ['./dist.zip'],archive: [{source: './dist', destination: `./dist.zip`}]}}})]}
}