C-Lodder / grunt-postcss

Apply several post-processors to your CSS using PostCSS.
MIT License
39 stars 7 forks source link

Support "browserslist" key in package.json #21

Closed mbomb007 closed 4 years ago

mbomb007 commented 4 years ago

At the moment, only the browsers key can be used in package.json. This key isn't the recommended key when looking at the browserslist documentation, which says the key should be browserslist.

Could you support that key as well as browsers?

C-Lodder commented 4 years ago

Autoprefixer 9.6.0 deprecated the use of the browser option. So you can add it to your package.json, like so:

"browserslist": [
  "last 1 version"
]

or .browserslistrc, like so:

# Browsers that we support
last 1 version
mbomb007 commented 4 years ago

Sounds good. You should probably update it at the bottom of the README.

C-Lodder commented 4 years ago

Will do tomorrow, thank you