Browse Source

Modify webpack configuration (#1206)

pull/2/head
break60 5 years ago committed by dailidong
parent
commit
3a3d2e45f9
  1. 18
      dolphinscheduler-ui/build/webpack.config.dev.js
  2. 20
      dolphinscheduler-ui/build/webpack.config.prod.js
  3. 18
      dolphinscheduler-ui/build/webpack.config.test.js

18
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')
]

20
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 */

18
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')
]

Loading…
Cancel
Save