Using externalDependencies for scss url() is incompatible wit karma #28321
Labels
area: @angular-devkit/build-angular
devkit/build-angular:karma
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Command
build, serve, test
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I'm trying to use urls relative to the baseHref:
then referencing assets like:
it works as expected when running the project but it fails on
ng test
.I couldn't find any workaround, except using urls relative to the .scss files and getting them handled by the build.
Minimal Reproduction
npm test
Full example: https://github.com/pmoleri/angular-basehref-scss/blob/master/src/app/very/deep/folder/my.component/my.component.scss
Exception or Error
Your Environment
Anything else relevant?
I tried all this combinations:
The text was updated successfully, but these errors were encountered: