提交 3a3d2e45 编写于 作者: B break60 提交者: dailidong

Modify webpack configuration (#1206)

上级 c207c9d9
......@@ -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')
]
......
......@@ -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 */
......
......@@ -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')
]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册