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
Bare with me, this issue has a lot moving parts, and only became an issue, after updating storybook, webpack, and of course, less-loader to the latest versions.
In one of our monorepo's packages, I have a otherTheme.less file which specifies @font-face blocks, which have absolute src urls like so:
I tried setting lessOptions.rewriteUrls to "local", but that had no effect.
Am I missing something here? This, almost identical (apart from migration changes) configuration used to work fine on [email protected], [email protected], storybook@5 and less-loader@^5.0.0
Expected Behavior
It should not try to import the remote urls from the filesystem.
How Do We Reproduce?
Can't share a repo right now, will try to get one up later.
Please paste the results of npx webpack-cli info here, and mention other relevant information
Bug report
Bare with me, this issue has a lot moving parts, and only became an issue, after updating storybook, webpack, and of course, less-loader to the latest versions.
In one of our monorepo's packages, I have a
otherTheme.less
file which specifies@font-face
blocks, which have absolute src urls like so:In storybook, we use less as well to provide a theme switching functionality. Storybook has less-loader configured like so:
in fontLoader.less, we load the fonts based on theme:
Actual Behavior
Compiling .less works fine, but loading fonts in storybook results in this error:
Scouring through issues and the internet didn't really help here. Notably this issue did not help here.
I tried setting lessOptions.rewriteUrls to "local", but that had no effect.
Am I missing something here? This, almost identical (apart from migration changes) configuration used to work fine on [email protected], [email protected], storybook@5 and less-loader@^5.0.0
Expected Behavior
It should not try to import the remote urls from the filesystem.
How Do We Reproduce?
Can't share a repo right now, will try to get one up later.
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: