SASS fails to import when extension is not provided and there is a directory in the same location with the same name
See original GitHub issueSay, I have a directory named home
and a file named home.scss
, where they both are in the same location. Now importing home
does not automatically detect and include home.scss
.
For example, if I use @import "home";
it does not include home.scss
. But if I use @import "home.scss";
it does.
I am using the version 3.4.22
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
When using SASS how can I import a file from a different ...
Importing a .scss file that has a nested import with a different relative position won't work.
Read more >Sass: @import
Sass extends CSS's @import rule with the ability to import Sass and CSS stylesheets, providing access to mixins, functions, and variables and combining ......
Read more >Stop using @import with Sass | @use and @forward explained
I just scratch the surface in this one, but it should be enough to ... If you're using the Watch Sass extension in...
Read more >sass-loader - webpack - JS.ORG
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >Sass @import and Partials - W3Schools
Tip: You do not need to specify a file extension, Sass automatically assumes that you mean a .sass or .scss file. You can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh yeah. I forgot that excluding extension works only for partials. Thanks for reminding me.
And yeah, it completely make sense. 😃
Many thanks for your kind co-operation. And sorry for the inconvenience.
I am closing the issue. 😃
No worries, I’m glad you sorted it out.