Skip to main content

browserslist

# 查看匹配
npx browserslist defaults
npx browserslist "last 1 version, >1%"
package.json
{
"browserslist": [
// > 0.5%, last 2 versions, Firefox ESR, not dead
"defaults",
// 可以继承
"extends browserslist-config-mycompany"
]
}
browserslist-config-mycompany/index.js
module.exports = [
'last 1 version',
'> 1%',
'ie 10'
]