-
Notifications
You must be signed in to change notification settings - Fork 12k
Two output files share the same path but have different contents: media/img.svg [plugin angular-compiler] #26347
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
Using Also of note, by referencing files inside a directory that is configured to be copied as an asset via the |
@clydin how and where to set the EDIT: OK, I've understood that externalDependencies is an option of the application builder, to add to the angular.json file. That's fine. The question about the customization of the media directory still stands though. EDIT: According to #26057 (comment), I understand that customizing the media directory name is something planned. |
If you use the |
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
serve
Is this a regression?
The previous version in which this bug was not present was
No response
Description
It is not possible to import in SCSS two or more files with the same name but located in different folders when using new esbuild builder
@angular-devkit/build-angular:application
during serve.And problem appears only during serve, production build works as expected: its generate 2 different images in media folder with different hashes.
The only possible workaround I found is adding
"outputHashing": "media"
to development configuration.Minimal Reproduction
https://github.com/ln-e/ng17-image-import-bug
npm run start
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: