I looking into Purgecss webpack docs and I'm a bit confused.
Why do I need to specify paths
in the plugin options?
new PurgeCSSPlugin({
paths: glob.sync(`${PATHS.src}/**/*`, { nodir: true }),
}),
Or in postcss:
purgecss({
content: ['./src/**/*.html']
})
By do this, I tell purgecss look into those HTML files, and that javascript files.
But when I using webpack it have all the source files that app needs. so Purgecss can't able to looking into HTML or js that it bundle?