A
A
Artyom2020-11-15 14:10:47
DLE
Artyom, 2020-11-15 14:10:47

Where to connect mixins and other scss files during development so that they are available in all components?

I have my own scss file for each component. The components themselves are connected in the App.js file.
Is it possible to include somewhere the app.scss file, which contains common settings and mixins, so that I can use them in all scss files without including separate app.scss in each of them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2020-11-15
@danyvasnafig

In the settings of the sass loader for webpack, you can specify a common include file. additionalData
option

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question