S
S
Serzio2018-08-01 21:54:03
Sass
Serzio, 2018-08-01 21:54:03

Is it possible to include scss and pug mixins in vue components globally?

I have my own grid on scss mixins, I also use bemto. How did it become possible to connect them separately once, and not insert them into each component? I am using nuxt.js in Vue..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2019-03-13
@delphinpro

snippet from my config

const sassLoaderOptions = {
    outputStyle: 'compressed',
    data       : '@import "./config.scss";',
};
 {
                test: /\.scss$/,
                use : [
                    'style-loader',
                    { loader: 'css-loader', options: cssLoaderOptions },
                    { loader: 'sass-loader', options: sassLoaderOptions },
                ],
            },

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question