B
B
BonBon Slick2019-11-30 15:51:28
Vue.js
BonBon Slick, 2019-11-30 15:51:28

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>

All imports that <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 question

Ask a Question

731 491 924 answers to any question