andrewvasilchuk / vue-lazy-youtube-video

Vue.js component for lazyloading YouTube videos.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Include CSS in component so user do not have to import it manually

GauthierPLM opened this issue · comments

The CSS should be imported in the component directly, so the user do not have to import it manually.

Currently, the component will not work if CSS is not imported in addition to the component. Moreover, this is not explained in the README.

@GauthierPLM, Thanks. It's by design. Currently rollup-plugin-vue does not support correct build for SSR. If we insert styles directly into component, an SSR build will be completely broken, so we are forced tom move styles to the separate file, and bundle them independently. Skim through this issue.

@GauthierPLM, There is a separate section about styles.