Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Preload inject_styles.js #1530

Closed
benmccann opened this issue Sep 19, 2020 · 0 comments · Fixed by #1537
Closed

Preload inject_styles.js #1530

benmccann opened this issue Sep 19, 2020 · 0 comments · Fixed by #1537
Labels

Comments

@benmccann
Copy link
Member

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant