-
Notifications
You must be signed in to change notification settings - Fork 12k
build does not take into account folders when dealing with svg #12186
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
Had a look and can confirm that I see the 1x1 (square) ES flag instead of the 4x3 (rectangular) one, while the source CSS rule should load the 4x3 one:
I think this is because of bad/missing duplicate handling in our CSS pipeline. |
@filipesilva This is due to Line 74 in f7f1d13
we can add [path] or something similar but it will be a breaking change as the output structure won't be flat anymore.
|
This is an issue for me too. I'm using ag-grid and the only way (without ejecting webpack config) is to have multiple folders of icons, named the same but with different colors. e.g. I have light and dark folders In previous version of cli (6.1.2), these svg icons were inlined which worked. Here's a reference to the ag grid icon theme issue ag-grid/ag-grid#2151 Hoping to show this issue might have a higher frequency than as tagged. |
You can set |
Kindly see #12186 (comment) for a workaround. |
How can I set |
You can set any option, in the options section. "build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
...
"outputHashing": "media"
},
"configurations": {
"production": {
...
}
}
}, |
It doesn't work there, at least for
I also tried to set it in |
…h the same filename Previously when hashing of media was disabled, if 2 files had the same name. Only one files used to be emitted. With this change we change the behaviour so that both files are emitted. Closes #12186
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. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Windows 10
Repro steps
In
angular.json
, I added the CSS:In
app.component.html
Run the app
The log given by the failure
N/A
Desired functionality
The spanish flag is interpreted as:
because the size of
es.svg
is more than 10KB. The issue is that the library has severales.svg
files. In my case this is not the one referenced by the CSS.After the
ng build
command, thedist
folder selects the firstes.svg
and not both.Mention any other details that might be useful
You see visually the issue at https://stackoverflow.com/questions/52192974/angular-data-urls-processing/52194037
The text was updated successfully, but these errors were encountered: