Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow providing custom PostCSS options #54

Closed
IlCallo opened this issue Jan 19, 2021 · 2 comments · Fixed by #67
Closed

Allow providing custom PostCSS options #54

IlCallo opened this issue Jan 19, 2021 · 2 comments · Fixed by #67

Comments

@IlCallo
Copy link

IlCallo commented Jan 19, 2021

  • Operating System: Ubuntu 18.04
  • Node Version: 12.14.0
  • NPM Version: 6.13.4
  • webpack Version: 4
  • css-minimizer-webpack-plugin Version: 1.2.0

Feature Proposal

Allow specifying custom options for PostCSS process, as https://github.com/NMFR/optimize-css-assets-webpack-plugin does (cssProcessorOptions option).
The options object is defined here and cannot be extended.

Feature Use Case

Into Quasar Framework we use https://github.com/postcss/postcss-safe-parser via the parser PostCSS option.

A possible patch would be to copy/paste the internal minify function into an external provided minify one, with the options we prefer

@alexander-akait
Copy link
Member

Yep, sounds good, PR welcome, let's name it as processorOptions

@mutoe
Copy link

mutoe commented Mar 1, 2021

Are there any updates? If I want to use postcss-safe-parser now, is there any alternative?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants