Skip to content

Quramy/storybook-angular-cli-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

It's deprecated

This function was merged into the original storybook (see storybookjs/storybook#2735). Use @storybook/angular >= 3.4.0-alpha.5 😄

Storybook Angular CLI helper

Functions to configure Storybook server which based Angular CLI project.

Install

cd your-prj-angular-cli-created
npm install --save-dev `@storybook/cli`
./node_modules/.bin/getstorybook
npm install --save-dev `@quramy/storybook-angular-cli-helper`
/* .storybook/webpack.config.js */
const applyStorybookDefaultConfig = require('@storybook/angular/dist/server/config/defaults/webpack.config');
const { applyAngularCliConfig } = require('@quramy/storybook-angular-cli-helper');

module.exports = (baseConfig, env) =>
  applyAngularCliConfig(applyStorybookDefaultConfig(baseConfig, env));

Features

  • Merge Angular CLI's webpack configuration
    • Styles
      • Load *.component.css
      • Load *.component.scss
      • Load global css
    • Assets

Example

See https://github.com/Quramy/storybook-ng-css .

License

MIT. See LICENSE file under this repository.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published