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

Preload inject_styles.js #1530

benmccann opened this issue Sep 19, 2020 · 0 comments

Preload inject_styles.js #1530

benmccann opened this issue Sep 19, 2020 · 0 comments


Copy link

@benmccann benmccann commented Sep 19, 2020

Originally reported by @ArekBartnik in #1524 (comment)

I'm really stumped on how to do this cleanly. See rollup/rollup#3790

I could do something kind of hacky and just look for a file named inject_styles.[hash].js. However, I've refactored the plugin to be two plugins now and would like to move out the css injection plugin to live in a separate codebase. That will give the user control over css handling and they can use the css code splitting and injection plugin, or another plugin to put everything in a single css bundle, or rollup-post-css or whatever else they want to do. At that point, it seems too tied to the current implementation to be looking specifically for inject_styles

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

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.