-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Refactoring a path with ".." in it causes an issue. #91
Comments
All url()s must be relative to the sass main entry file, because the css-loader resolves the url()s based on this location. Less has an option which rewrites the urls accordingly, but Sass has not afaik. Have you tried overriding the |
Something is strange with '..' paths. I have a @import "../fonts/droid-serif/index.css";
@import "../fonts/open-sans/index.css";
... once i work around #98 , i get: ERROR in ./~/css-loader!./~/sass-loader?includePaths[]=/Users/jgrimes/Workspace/nti.web.mobile/src/main/resources/vendor/foundation/scss!./src/main/resources/scss/app.scss
Module build failed:
@import "../fonts/droid-serif/index.css";
^
File to import not found or unreadable: ../fonts/droid-serif/_index.css.scss/Users/jgrimes/Workspace/nti.web.mobile/src/main/resources/scss/
in /Users/jgrimes/Workspace/nti.web.mobile/src/main/resources/scss/_fonts.scss (line 1, column 9)
Error:
@import "../fonts/droid-serif/index.css";
^
File to import not found or unreadable: ../fonts/droid-serif/_index.css.scss/Users/jgrimes/Workspace/nti.web.mobile/src/main/resources/scss/
in /Users/jgrimes/Workspace/nti.web.mobile/src/main/resources/scss/_fonts.scss (line 1, column 9)
at options.error (/Users/jgrimes/Workspace/nti.web.mobile/node_modules/node-sass/lib/index.js:276:32)
@ ./src/main/resources/scss/app.scss 4:14-229 (this works just fine in 0.4.x) |
Oops, that's probably a bug introduced with |
It works in |
Does it work in 1.0.3? |
Should be fixed with 2.0.0 |
I am currently building a "custom" Bootstrap by going haywire with the config, and creating my own entry SCSS file. Truth be told, I am not familiar with SCSS. It's my first time of use.
I am getting this error:
In Bootstrap's gylphcons.scss file, they refference the font files with "../glyphs.svg", for instance. Using the plain CSS version let's this work and resolve. But it appears that this module doesn't play nicely with this option.
For now I am commenting the glyphs out (I am using font-awesome too anyway) but would like to know if this could be resolved. Thanks!
The text was updated successfully, but these errors were encountered: