Skip to content

css modules typings loader for webpack, compatible with css-loader v4

License

Notifications You must be signed in to change notification settings

kagawagao/css-modules-typings-loader

Repository files navigation

css-modules-typings-loader

css modules typings loader for webpack, compatible with css-loader v4

build npm npm codecov

Install

npm i @opd/css-modules-typings-loader --save--dev

Usage

// webpack config
module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          {
            loader: '@opd/css-modules-typings-loader',
          },
          {
            loader: 'css-loader',
            options,
          },
        ],
      },
    ],
  },
}