Skip to content

Commit

Permalink
browserslist IE>=10
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzheng committed Apr 26, 2019
1 parent b24cca1 commit 1188a67
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
10 changes: 1 addition & 9 deletions babel.config.js
Expand Up @@ -5,15 +5,7 @@ module.exports = {
{
modules: false,
targets: {
browsers: [
'Chrome >= 49',
'Firefox >= 45',
'Safari >= 10',
'Edge >= 13',
'iOS >= 10',
'IE >= 10',
'Electron >= 0.36'
]
browsers: require('./package.json').browserslist
}
}
]
Expand Down
6 changes: 1 addition & 5 deletions build/webpack.base.conf.js
Expand Up @@ -46,10 +46,6 @@ module.exports = {
{
test: /\.js$/,
include: [resolve('src'), resolve('test')],
exclude: file => (
/node_modules/.test(file) &&
!/\.vue\.js/.test(file)
),
use: [
//step-2
'babel-loader?cacheDirectory',
Expand Down Expand Up @@ -100,7 +96,7 @@ module.exports = {
if (name === '.el-button.is-plain:active' || name === '.el-button.is-plain:focus,.el-button.is-plain:hover') {
return '.el-button--default'
}

// 提升优先级,避免被懒加载的样式覆盖
return 'body '
},
Expand Down
10 changes: 7 additions & 3 deletions package.json
Expand Up @@ -107,9 +107,13 @@
"npm": ">= 3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 9"
"Chrome >= 49",
"Firefox >= 45",
"Safari >= 10",
"Edge >= 13",
"iOS >= 10",
"IE >= 10",
"Electron >= 0.36"
],
"main": ".eslintrc.js",
"directories": {
Expand Down

0 comments on commit 1188a67

Please sign in to comment.