From 3a3d2e45f97937ea269627bb3cf13e580e2f0c8a Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Tue, 12 Nov 2019 13:56:01 +0800 Subject: [PATCH] Modify webpack configuration (#1206) --- .../build/webpack.config.dev.js | 18 ++++++++++++++--- .../build/webpack.config.prod.js | 20 +++++++++++++++---- .../build/webpack.config.test.js | 18 ++++++++++++++--- 3 files changed, 46 insertions(+), 10 deletions(-) diff --git a/dolphinscheduler-ui/build/webpack.config.dev.js b/dolphinscheduler-ui/build/webpack.config.dev.js index 015319d7cf..ffb4ac41d8 100644 --- a/dolphinscheduler-ui/build/webpack.config.dev.js +++ b/dolphinscheduler-ui/build/webpack.config.dev.js @@ -31,7 +31,7 @@ const config = merge.smart(baseConfig, { test: /\.vue$/, loader: 'vue-loader', options: { - hotReload: true // 开启热重载 + hotReload: true // Open hot overload } }, { @@ -44,7 +44,13 @@ const config = merge.smart(baseConfig, { options: { plugins: (loader) => [ require('autoprefixer')({ - 'browsers': [ '> 1%', 'last 3 versions', 'ie >= 9' ] + overrideBrowserslist: [ + "Android 4.1", + "iOS 7.1", + "Chrome > 31", + "ff > 31", + "ie >= 8" + ] }), require('cssnano') ] @@ -65,7 +71,13 @@ const config = merge.smart(baseConfig, { options: { plugins: (loader) => [ require('autoprefixer')({ - 'browsers': [ '> 1%', 'last 3 versions', 'ie >= 9' ] + overrideBrowserslist: [ + "Android 4.1", + "iOS 7.1", + "Chrome > 31", + "ff > 31", + "ie >= 8" + ] }), require('cssnano') ] diff --git a/dolphinscheduler-ui/build/webpack.config.prod.js b/dolphinscheduler-ui/build/webpack.config.prod.js index 8f1479ca0c..41bab8035e 100644 --- a/dolphinscheduler-ui/build/webpack.config.prod.js +++ b/dolphinscheduler-ui/build/webpack.config.prod.js @@ -37,7 +37,7 @@ const config = merge.smart(baseConfig, { test: /\.vue$/, loader: 'vue-loader', options: { - hotReload: false // 开启热重载 + hotReload: false // Open hot overload } }, { @@ -50,7 +50,13 @@ const config = merge.smart(baseConfig, { options: { plugins: (loader) => [ require('autoprefixer')({ - 'browsers': [ '> 1%', 'last 3 versions', 'ie >= 9' ] + overrideBrowserslist: [ + "Android 4.1", + "iOS 7.1", + "Chrome > 31", + "ff > 31", + "ie >= 8" + ] }), require('cssnano') ] @@ -71,7 +77,13 @@ const config = merge.smart(baseConfig, { options: { plugins: (loader) => [ require('autoprefixer')({ - 'browsers': [ '> 1%', 'last 3 versions', 'ie >= 9' ] + overrideBrowserslist: [ + "Android 4.1", + "iOS 7.1", + "Chrome > 31", + "ff > 31", + "ie >= 8" + ] }), require('cssnano') ] @@ -101,7 +113,7 @@ const config = merge.smart(baseConfig, { warnings: false, drop_debugger: true, drop_console: true, - pure_funcs: ['console.log']//移除console + pure_funcs: ['console.log']// remove console }, comments: function (n, c) { /*! IMPORTANT: Please preserve 3rd-party library license info, inspired from @allex/amd-build-worker/config/jsplumb.js */ diff --git a/dolphinscheduler-ui/build/webpack.config.test.js b/dolphinscheduler-ui/build/webpack.config.test.js index d98a993389..3193ca3d73 100644 --- a/dolphinscheduler-ui/build/webpack.config.test.js +++ b/dolphinscheduler-ui/build/webpack.config.test.js @@ -31,7 +31,7 @@ const config = merge.smart(baseConfig, { test: /\.vue$/, loader: 'vue-loader', options: { - hotReload: true // 开启热重载 + hotReload: true // Open hot overload } }, { @@ -44,7 +44,13 @@ const config = merge.smart(baseConfig, { options: { plugins: (loader) => [ require('autoprefixer')({ - 'browsers': [ '> 1%', 'last 3 versions', 'ie >= 9' ] + overrideBrowserslist: [ + "Android 4.1", + "iOS 7.1", + "Chrome > 31", + "ff > 31", + "ie >= 8" + ] }), require('cssnano') ] @@ -65,7 +71,13 @@ const config = merge.smart(baseConfig, { options: { plugins: (loader) => [ require('autoprefixer')({ - 'browsers': [ '> 1%', 'last 3 versions', 'ie >= 9' ] + overrideBrowserslist: [ + "Android 4.1", + "iOS 7.1", + "Chrome > 31", + "ff > 31", + "ie >= 8" + ] }), require('cssnano') ]