This repository was archived by the owner on Feb 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Create an example of sass-loader & postcss-loader for Webpack v4 with mini-css-extract-plugin #76
Comments
I did managed to make it work but it doesn't seem to be purging anything. I'm on an old project so I'll try to create a minimal repository with which it would be reproducable. I'm using Encore myself but the configuration is very similar:
which would be equivalent in pure webpack config:
|
I must have been tired and somehow missed the example in main README.md - it would be convenient to add it to the main example folder too :) My final configuration that works:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've been trying to implement the PurgeCSS webpack plugin while using
sass-loader
andpostcss-loader
. I've found the examples only for webpack V3:https://github.com/FullHuman/purgecss-webpack-plugin/tree/master/examples/postcss-and-scss
https://github.com/webpack-contrib/extract-text-webpack-plugin
My suggested solution: Create an example configuration for webpack v4 with sass-loader and postcss-loader
The text was updated successfully, but these errors were encountered: