You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npx postcss *.css --use autoprefixer -d "build/" = run from the cli or add it to a npm script
it will save autoprefixed css files to the 'build' directory
--watch or -w = add one of these options to watch
Config
Autoprefixer uses Browserslist, so you can specify the browsers you want to target in your project with queries like '> 5%'
the best way to provide browsers is a '.browserslistrc' file in your project root, or by adding a browserslist key to your package.json
it's recommend the use of these options over passing options to Autoprefixer so that the config can be shared with other tools such as babel-preset-env and Stylelint.
BrowsersList
read how to make query composition (and, or, not) here