Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 855 Bytes

05-customizing-browserslist.md

File metadata and controls

35 lines (26 loc) · 855 Bytes

Customizing browserslist

Jetpack compiles your code using babel-preset-env and postcss-preset-env plugins to ensure the code is ready for all the browsers you support. Those projects follow the lovely browserlist convention.

By default, jetpack uses the defaults that browserslist recommends.

To configure the list of browsers, you can use any of method supported by browserslist:

package.json

{
  "private": true,
  "dependencies": {
    "autoprefixer": "^6.5.4"
  },
  "browserslist": [
    "last 1 version",
    "> 1%",
    "IE 10"
  ]
}

.browserslist config file

# Browsers that we support

last 1 version
> 1%
IE 10 # sorry

See browserslist docs for full details.