laravel-mix-react-css-modules icon indicating copy to clipboard operation
laravel-mix-react-css-modules copied to clipboard

Possible to include a global SASS-File?

Open mathishuettl opened this issue 3 years ago • 1 comments

Hello,

is it possible to include a global .scss file (with variables and mixins) and use the variables/mixins in a styles.module.scss file?

mathishuettl avatar Jul 15 '21 18:07 mathishuettl

Yes! You can create a global file and a set of mix-ins, and then import them in each individual CSS Module file using the SASS-standard @import rule (see https://sass-lang.com/documentation/at-rules/import).

leinelissen avatar Jul 15 '21 20:07 leinelissen