-
Notifications
You must be signed in to change notification settings - Fork 16
includePaths should normalize path separator #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
ljani
added a commit
to ljani/svelte-preprocess-cssmodules
that referenced
this issue
Jan 26, 2022
Fixes micantoine#42 by normalizing includePaths to use forward slashes on Windows too. In addition, filenames are now expected to *start with* an includePath, not only contain it. includePaths are now resolved ahead of time to improve performance.
Merged
ljani
added a commit
to ljani/svelte-preprocess-cssmodules
that referenced
this issue
Jan 26, 2022
Fixes micantoine#42 by normalizing includePaths to use forward slashes on Windows too. In addition, filenames are now expected to *start with* an includePath, not only contain it. includePaths are now resolved ahead of time to improve performance.
ljani
added a commit
to ljani/svelte-preprocess-cssmodules
that referenced
this issue
Jan 26, 2022
Fixes micantoine#42 by normalizing includePaths to use forward slashes on Windows too. In addition, filenames are now expected to *start with* an includePath, not only contain it. includePaths are now resolved ahead of time to improve performance.
Included in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm on Windows and tried to configure
includePaths
to only include["./src"]
, but none of the files match.If I
console.log(filename, path.resolve(includePath))
here, I get the following output:Obviously
filename.indexOf
will fail. Thus eitherfilename
should be normalized to use backslashes or the result frompath.resolve
should be changed to use forward slashes.PS. maybe consider breaking the
forEach
, when the first match is found? Also should thisif
be anelse
?The text was updated successfully, but these errors were encountered: