-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Angular CLI + SCSS + url(...) issue #3450
Comments
while we do try to include sensible defaults, we can't possibly support every possible config in webpack please follow the extend mode guide here to add your own webpack plugin to Storybook: |
Since the 3.4 version, storybook integrates with the styling part of the angular-cli. Can you share you webpack.config.js? |
@igor-dv I do not use any custom webpack.config.js - I tried to use the full mode in order to get this running but failed when I tried to add a scss loader to the defaultConfig because there already was a scss loader (see vuejs-templates/webpack-simple#107 (comment)) Here's my current scenario
|
nvm - seems to be angular-cli related |
Bug or support request summary
Hey,
per default storybook handles angular pretty well but we recently moved from less to scss and now
url(...)
with relative paths don't work anymore. Then I found this: https://github.com/webpack-contrib/sass-loader#problems-with-urlI tried to extend the webpack defaultConfig as described in the storybook documentation but then I ran into this vuejs-templates/webpack-simple#107 (comment)
What should I do now? Is it possible to integrate https://github.com/bholloway/resolve-url-loader in your default scss webpack build step (if this is really the fix.. since I am an angular developer I barely know how to configure webpack :) )?
Steps to reproduce
@import 'fonts/fonts.scss'
url
Please specify which version of Storybook and optionally any affected addons that you're running
The text was updated successfully, but these errors were encountered: