You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.
I'd like to provide defaults for purgecss-webpack-plugin and allow the users of my plugin to provide their own whitelist configuration. The docs indicate we could add these options in the purgecss.config.js file: https://www.purgecss.com/configuration#configuration-file
So that ignores the ability to load configuration from a file.
Maybe this is an issue of wanting my cake and eating it too, but it would be nice to be able to configure these options separate from the webpack configuration.
The text was updated successfully, but these errors were encountered:
I'd like to provide defaults for
purgecss-webpack-plugin
and allow the users of my plugin to provide their ownwhitelist
configuration. The docs indicate we could add these options in thepurgecss.config.js
file: https://www.purgecss.com/configuration#configuration-fileBut,
purgecss
doesn't load configuration from this file if its passed an object: https://github.com/FullHuman/purgecss/blob/master/src/index.js#L41-L42And
purgecss-webpack-plugin
passes an object topurgecss
: https://github.com/FullHuman/purgecss-webpack-plugin/blob/master/src/index.js#L118So that ignores the ability to load configuration from a file.
Maybe this is an issue of wanting my cake and eating it too, but it would be nice to be able to configure these options separate from the webpack configuration.
The text was updated successfully, but these errors were encountered: