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
{{ message }}
Repository navigation
Rebuilding on 'ng serve'. Removed css-resource:src (build-angular:application) #26918
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
We have a large project that takes longer than a minute to start. We upgraded from version 16 to version 17.1.0 and switched to 'build-angular:application.' Every time we start, we get the message: 'Changes detected. Rebuilding...' and the entire project is rebuilded, taking a long time again. In verbose mode, I see that all CSS images are in the "removed" array. They are displayed, but rebuilding on serve is frustrating.
Minimal Reproduction
generate new project (ng new, SCSS)
apend new class to styles.scss .test-resource { display: inline-block; min-width: 3em; min-height: 3em; background-image: url(./assets/icon.png); background-size: contain; background-position: 50%; background-repeat: no-repeat; }
add some icon.png to src/assets
add new element to app.component.html <span class="test-resource"></span>
Activity
fix(@angular-devkit/build-angular): do not add internal CSS resources…
p3t3r5 commentedon Jan 22, 2024
Thank you for the quick fix :) We have many css resources (pictures/fonts) from other folders (thirdparty). I hope this path fixes them too.
...\\css-resource:node_modules\\@fortawesome\\......\\css-resource:vendor\\flags\\svg\\...alan-agius4 commentedon Jan 22, 2024
@p3t3r5, yes the fix handles all those.
fix(@angular-devkit/build-angular): do not add internal CSS resources…
fix(@angular-devkit/build-angular): do not add internal CSS resources…
angular-automatic-lock-bot commentedon Feb 22, 2024
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.