Skip to content

Commit

Permalink
Merge pull request #3022 from jonrimmer/patch-1
Browse files Browse the repository at this point in the history
Add warning about importing CSS in Angular CLI projects
  • Loading branch information
Hypnosphi authored Feb 19, 2018
2 parents a1229bb + 5f9d34a commit 0f5adb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/pages/configurations/default-config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ import './styles.css';

> **Note:** this is plain CSS only. If you need a preprocessor like SASS, you need to [customize the webpack config](/configurations/custom-webpack-config/).
> **Warning:** storybooks for projects that use Angular CLI cannot import CSS by default. They must either [customize the webpack config](/configurations/custom-webpack-config/), or use the inline loader syntax:
> ```js
> import '!style-loader!css-loader!./styles.css';
> ```
### Image and Static File Support
You can also import images and media files directly via JavaScript.
Expand Down

0 comments on commit 0f5adb3

Please sign in to comment.