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
It looks like setting extensions: ["foo"] will override and replace and the default extensions configuration. There doesn't seem to be a configurable way of extending that list of default extensions.
When using fingerprintOptions via ember-cli, I noticed that "svg" isn't part of the default extension options, which was causing some discrepancies with url('/assets/images/.../foo.svg') vs url('/images/.../foo.svg') in CSS.
@aprescott I stumbled into the missing svg extension yesterday as well and observed interesting behaviour as well. How does your build process behave when passing in a complete new list of extensions? E.g.
@mirague yep, that works fine, since it's the same as concating against the default. I wanted to avoid hard-coding the current set of defaults, which is why my work-around above uses concat.
It looks like setting
extensions: ["foo"]
will override and replace and the default extensions configuration. There doesn't seem to be a configurable way of extending that list of default extensions.When using
fingerprintOptions
via ember-cli, I noticed that"svg"
isn't part of the default extension options, which was causing some discrepancies withurl('/assets/images/.../foo.svg')
vsurl('/images/.../foo.svg')
in CSS.To fix that, I tried setting this configuration:
However, looking at the code, that seems to override and remove the default options, since
options.extensions
takes precedence overdefaults.extensions
.Also, setting
extensions: ["svg"]
caused my app to not build correctly, for reasons I can't quite explain.It would be great to be able to add to the default extensions list.
I worked around that manually like so:
The text was updated successfully, but these errors were encountered: