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
SASS: unable to resolve resource specified in the CSS url(...) function #26339
Comments
We typically try to avoid including All that said, I can see an argument that we might want to align behavior with the Webpack builder just for compatibility to make the upgrade process easier. |
@dgp1130 |
Due to the lack of native
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Command
build
Is this a regression?
The previous version in which this bug was not present was
14 (with classic builder)
Description
When including a SCSS file that has references to other resource files (via the CSS
url
function), the builder should resolve these resource files, relatively to the current SCSS file (if it's a relative URL) and include them in thedist
directory.Minimal Reproduction
ng new
material-icons
library withnpm i material-icons
styles.scss
file:@import "../node_modules/material-icons/iconfont/material-icons.scss"
Exception or Error
Your Environment
Anything else relevant?
The issue is also present with Angular 16 esbuild preview, so it's a regression comparing to the old build engine, but it has likely always been present with the new esbuild engine.
The text was updated successfully, but these errors were encountered: