RadValentin / postcss-prefix-selector

Prefix all CSS rules with a selector
MIT License
165 stars 16 forks source link

Update Webpack config for PostCSS 8 #83

Closed blaiz closed 3 years ago

blaiz commented 3 years ago

Hello!

I'm in the process of upgrading a lot of dependencies in my own projects and this is the change I had to make in my webpack.config.js to get this PostCSS plugin working with the new PostCSS 8 and the latest version of the Webpack postcss-loader, per the example at https://github.com/webpack-contrib/postcss-loader#getting-started

I can confirm that this works for my own project, whereas the old config didn't work. Please let me know your thoughts.

RadValentin commented 3 years ago

Looks good to me. One thing I'm unclear on is if this config will work with PostCSS 7 since that version is marked as a dependency.