Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Support mulitple style tags #34

Closed
posva opened this issue Nov 25, 2016 · 0 comments
Closed

Support mulitple style tags #34

posva opened this issue Nov 25, 2016 · 0 comments
Milestone

Comments

@posva
Copy link
Member

posva commented Nov 25, 2016

Hi, currently only the first style tag in a vue component gets passed to the css function, but a component supports having multiple style tags.
At first, I was going to implement it but the tests are a bit too generic. Adding the corresponding test will need quite some refactor on the tests and since this is not my project my way of doing it may not match your way.

Overall, adding support for multiple styles is quite easy: just use an array at https://github.com/znck/rollup-plugin-vue/blob/master/src/vueTransform.js#L177 for style or any non template/script node (that'd allow adding support for custom blocks in the future)

@znck znck added this to the Version 2.3 milestone Nov 25, 2016
@znck znck closed this as completed in 5bc78fb Dec 13, 2016
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