Great explanation.
Jasraj
11

So Autoprefixer is now part of PostCSS, so you load it through thepostcss-loader for your CSS files. I actually like CSSnext which is Autoprefixer + future CSS features, but you could just use plain autoprefixer by itself. Install it locally with yarn add --dev autoprefixer and use the newfangled loader options plugin for Webpack:

module.exports = {
// …
plugins: [
new webpack.LoaderOptionsPlugin({
options: {
postcss: [
require('autoprefixer'),
// require ('postcss-cssnext'), // or use this instead
],
},
}),
],
// …
}

You can still use browserlist to configure Autoprefixer like it recommends.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.