How to glob import scss files in webpack 5 #13000
Unanswered
knightswatch3
asked this question in
Q&A
Replies: 1 comment
-
If your SCSS files are complaining about missing SCSS functions then it sounds like your SCSS files are not importing other SCSS files properly. How are those files imported? Using aliases or just regular functions? If you just use Also, you might not want to glob ALL your SCSS files into Webpack. Typically you would not want any SCSS files starting with underscore "_" to be globbed in as those would be imported by your other SCSS files. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to glob import all my scss files in the project to the main file named main.scss.
In webpack-3 things worked just fine as I was using the loader import-glob and my sass-loader is given the paths to load the scss files from.
But unfortunately the same setup never works for webpack 5.
My scss files complain about missing scss functions.
Beta Was this translation helpful? Give feedback.
All reactions