Skip to content

Allow async functions for minifyCSS #112

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

Closed
chrisspiegl opened this issue Feb 15, 2022 · 1 comment · Fixed by #113
Closed

Allow async functions for minifyCSS #112

chrisspiegl opened this issue Feb 15, 2022 · 1 comment · Fixed by #113

Comments

@chrisspiegl
Copy link

I tried using the clean-css option to import / process remote @import statements ({ inline: ['remote'] }).

This option however only works when the clean-css function is called with a callback.

Example based on "How to process remote @imports correctly:

var source = '@import url(http://example.com/path/to/remote/styles);';
new CleanCSS({ inline: ['remote'] }).minify(source, function (error, output) {
  // output.styles
});

Since the html-minifier-terser currently does not support async minifyCSS this is not working.

Async minification for JS was implemented based on this Issue: #49

Maybe CSS is similar to achieve?

@sibiraj-s
Copy link
Collaborator

Fixed in v7.0.0-alpha.2

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.

2 participants