Socket
Book a DemoInstallSign in
Socket

storybook-css-modules-preset

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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`.

1.1.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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:

  • 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',
    ]
  }

FAQs

Package last updated on 08 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.