Socket
Socket
Sign inDemoInstall

@webpack-blocks/css-modules

Package Overview
Dependencies
121
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @webpack-blocks/css-modules

Webpack block for CSS modules.


Version published
Weekly downloads
31
increased by244.44%
Maintainers
1
Install size
24.2 MB
Created
Weekly downloads
 

Readme

Source

Webpack blocks - CSS Modules

JavaScript Style Guide NPM Version

This is the css-modules block providing CSS modules configuration by setting the modules parameter on the css-loader.

Usage

const { createConfig } = require('@webpack-blocks/webpack')
const cssModules = require('@webpack-blocks/css-modules')

module.exports = createConfig([
  cssModules(/* options */)
])

Options

exclude (optional)

Regular expression, string or function describing which files/directories not to use the CSS modules loader on. Defaults to /\/node_modules\// regex.

importLoaders (optional integer)

That many loaders after the css-loader are used to import resources. Defaults to 1. See css-loader.

localIdentName (optional string)

The pattern how to rewrite the CSS class names. Defaults to [name]--[local]--[hash:base64:5] in development and [hash:base64:10] in production.

Webpack blocks

Check out the

👉 Main Documentation

Released under the terms of the MIT license.

FAQs

Last updated on 27 Jan 2017

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc