You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this issue is a) not specifically to do with sass-loader, or b) already described in another issue, but hopefully this will at the very least enlighten me or others with the same issue. Apologies if it has been covered or I'm looking in the wrong place.
If we build scss/app.scss to css/app.css, the font path is correct - that is how SASS expects the path to resolve - as it resolves it based on the final output CSS. If we use webpack with sass-loader, this breaks, because it tries to find the font-file.woff relative to partials/i-load-a-font.scss.
So I've inherited a project that is compiled with SASS that compiles properly with grunt or whatever they used, but as soon as I try to compile it with webpack it won't work. Is there a way to get this to work with webpack? It would seem odd to me that we would have to rewrite the SASS for this reason.
The text was updated successfully, but these errors were encountered:
I'm not sure if this issue is a) not specifically to do with sass-loader, or b) already described in another issue, but hopefully this will at the very least enlighten me or others with the same issue. Apologies if it has been covered or I'm looking in the wrong place.
Given the following directory structure:
app.scss:
partials/i-load-a-font.scss:
If we build scss/app.scss to css/app.css, the font path is correct - that is how SASS expects the path to resolve - as it resolves it based on the final output CSS. If we use webpack with sass-loader, this breaks, because it tries to find the font-file.woff relative to partials/i-load-a-font.scss.
So I've inherited a project that is compiled with SASS that compiles properly with grunt or whatever they used, but as soon as I try to compile it with webpack it won't work. Is there a way to get this to work with webpack? It would seem odd to me that we would have to rewrite the SASS for this reason.
The text was updated successfully, but these errors were encountered: