A
A
Alexander2019-01-18 14:40:42
Vue.js
Alexander, 2019-01-18 14:40:42

Why is Laravel not loading css file from vue child component?

Friends, hello everyone.
Laravel has a.vue component. I insert another component into it, here is a piece of the insert:

import DateRangePicker from 'vue2-daterange-picker'

    export default {
        components: {
            DateRangePicker
        },

In the inserted component, there is an import of the css file:
<style lang="scss">
    @import '../assets/daterangepicker.css';
</style>

After building via npm run dev, data from the daterangepicker.css file does not get into css..
Packages "node-sass", "sass-loader" for npm are installed, scss styles are read correctly..
Tell me, what did I miss? Maybe something in webpack.mix.js needs to be added?
Thank you very much in advance!

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