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

Inject CSS in JavaScript #177

Open
Djaler opened this issue Mar 5, 2022 · 1 comment
Open

Inject CSS in JavaScript #177

Djaler opened this issue Mar 5, 2022 · 1 comment

Comments

@Djaler
Copy link
Contributor

Djaler commented Mar 5, 2022

It would be cool to have an option like css in old good rollup-plugin-vue:
https://github.com/vuejs/rollup-plugin-vue/blob/v5.1.9/src/index.ts#L119

@dcherman
Copy link

dcherman commented Jun 8, 2022

Would a pull request for this be accepted? Alternatively, could we consider exposing some additional metadata on the .vue that includes what scripts/stylesheets/templates were extracted from the SFC? If we had access to that, writing a plugin to inline the CSS in the JS is relatively trivial.

It's doable right now, but you have to copy/paste those implementation details that I mentioned above which are not exposed from this plugin at the moment.

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

No branches or pull requests

2 participants