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 was 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.
I'd like to provide defaults for
purgecss-webpack-pluginand allow the users of my plugin to provide their ownwhitelistconfiguration. The docs indicate we could add these options in thepurgecss.config.jsfile: https://www.purgecss.com/configuration#configuration-fileBut,
purgecssdoesn'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-pluginpasses 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.