|
@@ -135,17 +135,7 @@ module.exports = function (webpackEnv) {
|
|
|
|
|
|
return {
|
|
return {
|
|
mode: isEnvProduction ? 'production' : isEnvDevelopment && 'development',
|
|
mode: isEnvProduction ? 'production' : isEnvDevelopment && 'development',
|
|
- devServer: {
|
|
|
|
- logLevel: 'debug',
|
|
|
|
- proxy: {
|
|
|
|
- '/api': {
|
|
|
|
- target: 'http://pengyi.w1.luyouxia.net/api/service-logan',
|
|
|
|
- pathRewrite: { '^/api': '' },
|
|
|
|
- changeOrigin: true,
|
|
|
|
- secure: false,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
// Stop compilation early in production
|
|
// Stop compilation early in production
|
|
bail: isEnvProduction,
|
|
bail: isEnvProduction,
|
|
devtool: isEnvProduction
|
|
devtool: isEnvProduction
|