Open Rami-Al opened 5 years ago
I guess it's the problem of sass-loader
, not HtmlWebPackPlugin
. After adding a postcss-import
plugin and everything works fine. Maybe the process order of loaders are different (I'm not sure) :/
Take a look at css-loader
's importLoaders option
From docs:
use: [
'style-loader',
{
loader: 'css-loader',
options: {
importLoaders: 2,
// 0 => no loaders (default);
// 1 => postcss-loader;
// 2 => postcss-loader, sass-loader
},
},
'postcss-loader',
'sass-loader',
],
Hey guys, I'm trying to use purgecss with my Webpack by using postcss but nothing's happening. I'm sure though that postcss is working fine since I tried other plugins like nanocss and autoprefixer and they're working perfectly. You can have a look at the simple zip project if you'd like. Don't forget to:
$ npm i
. postcss.zip OR have a look at my config files here.webpack.config.js
postcss.config.js
package.json