B
B
BonBon Slick2020-02-28 11:02:12
Sass
BonBon Slick, 2020-02-28 11:02:12

Why @use rules must be written before any other rules. when is he first?

global.scss

@use 'modules';
//keep the right order
@import 'colors';
@import 'functions';
// styles
@import 'fonts';
@import 'transitions';
@import 'override';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pqgg7nwkd4, 2020-11-16
@pqgg7nwkd4

You have something like this in webpack.config.js (it's the first one you see):

{
            loader: "sass-loader",
            options: {
                additionalData: '@import "commonVariables.scss";'
            }
        }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question