-
Notifications
You must be signed in to change notification settings - Fork 0
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 importing CSS #39
Comments
this is an example of injecting css via javascript code from an esbuild plugin
i am trying it out with the protein3d plugin...will probably want a similar snippet for rollup |
the alternative to this would probably be having a similar snippet that injects a "link" tag for the style, and then allowing the plugin to refer to both a css and js file(?) |
way that i ended up using was just taking the snippet in the above and using it raw in the source code, instead of relying on specialized css filenames...then i don't need e.g. a specialized config for rollup and esbuild |
Some modules, example: molstar, work best if you can import a css file. In webpack, requires a css-loader
In rollup, may require a different loader
May be able to output a 'chunk of js that writes a style tag'
The text was updated successfully, but these errors were encountered: