question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Say, 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:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
AnmSaifulcommented, Jun 1, 2017

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. 😃

1reaction
daveschwersteincommented, Jun 2, 2017

No worries, I’m glad you sorted it out.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found