Skip to content

Commit

Permalink
Add a warning about URL case to the @use docs
Browse files Browse the repository at this point in the history
Closes #566
  • Loading branch information
nex3 committed Feb 29, 2024
1 parent 3a099f2 commit 403d712
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/documentation/at-rules/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,12 @@ load; `@use "variables"` will automatically load `variables.scss`,
To ensure that stylesheets work on every operating system, Sass loads files by
*URL*, not by *file path*. This means you need to use forward slashes, not
backslashes, even on Windows.

This also means that URLs are case-sensitive, so Sass will consider
`Styles.scss` and `styles.scss` to be different modules even if you're using a
case-insensitive filesystem. Make sure your URLs match the actual case of the
files on disk, or your stylesheets may load twice and definitely won't work on
other operating systems.
{% endheadsUp %}

### Load Paths
Expand Down

0 comments on commit 403d712

Please sign in to comment.