DEV Community

Discussion on: Managing ASP.NET Core MVC front-end dependencies with npm and webpack (part 2)

Collapse
 
martajohnsson profile image
Marta Johnsson

I've been trying to add purgeCSS in my postcss.config.js without success. Do You have any idea why it should't work as excepted?
My css is just blank after that process.
I would like to work with scss files from node_modules/bootstrap/scss/bootstrap and be able to add custom configuration.
I ask because You mantion CSS pruning in Your article.

Collapse
 
martajohnsson profile image
Marta Johnsson

So silly mistake. I did send wrong path to content. It should be: content: ["./../Views/*/.cshtml"]. Now it works like a charm.