Answer the question
In order to leave comments, you need to log in
Css import bug in child components?
Import and order of css files works correctly only in the first, base component
<template>
<router-view></router-view>
</transition>
</template>
<style lang="scss" type="text/scss">
@import '~video.js/dist/video-js.css'; // ok
@import '[email protected]_video.js/dist/video-js.css'; // ok
</style>
<router-view></router-view>
do not work correctly, the order is broken, and sometimes they do not work at all.<template>
Parent
</template>
<style lang="scss" type="text/scss">
@import '~video.js/dist/video-js.css'; // ok
</style>
<template>
Child
</template>
<style lang="scss" type="text/scss">
@import '[email protected]_video.js/dist/video-js.css'; // BROKEN, NOT WORK
</style>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question