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