Skip to content

Negan1911/storybook-css-modules-preset

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Storybook CSS Modules Preset

This plugin will add CSS Modules support for Storybook, CSS files will be treated as modules as long as they end with .module.css.

Also, this plugin will respect any previous configuration done to css loaders, basically means that, if you were using postcss-loader or any other extra webpack loader, it will be also applied to css modules.

For using it:

  1. run npm install -D storybook-css-modules-preset or yarn add -D storybook-css-modules-preset. 1.just add the following plugin on your ./storybook/main.js:
  module.exports = {
    addons: [
+     'storybook-css-modules-preset',
    ]
  }

About

Adding CSS Modules support for storybook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published