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 postcss configuration options #488

Open
gherkz opened this issue Mar 30, 2021 · 0 comments
Open

Allow postcss configuration options #488

gherkz opened this issue Mar 30, 2021 · 0 comments

Comments

@gherkz
Copy link
Contributor

gherkz commented Mar 30, 2021

Rebasing of asset URLs is pretty important for the critical CSS, which is achieved with the postcss-url postcss plugin. If would be helpful to be able to configure postcss to allow, for example, an alternative parser such as postcss-safe-parser.

This is currently impossible, which makes generating critical CSS for pages with syntax errors very difficult. I supposed this behaviour might be desired when you have control over the source files. However, it makes using critical rather difficult when you don't.

Either way, it would be nice to be able to pass extra options to the .process call for the URL rebasing (and maybe the postcss postprocessing as well).

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

No branches or pull requests

2 participants