css-modules-typings-loader

1.1.3 • Public • Published

css-modules-typings-loader

Webpack loader to generate TS typings of local classnames as [filename].d.ts file alongside source file.


To use this loader add it to chain after css-loader.

In development:

{
  test: /\.module\.css$/,
  use: [
    'style-loader',
    'css-modules-typings-loader',
    {
      loader: 'css-loader',
      options: {
        modules: true,
      }
    },
  ],
}

In production:

{
  test: /\.module\.css$/,
  use: [
    MiniCssExtractPlugin.loader
    'css-modules-typings-loader',
    {
      loader: 'css-loader',
      options: {
        modules: true,
      }
    },
  ],
}

/css-modules-typings-loader/

    Package Sidebar

    Install

    npm i css-modules-typings-loader

    Weekly Downloads

    3

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    5.04 kB

    Total Files

    6

    Last publish

    Collaborators

    • pristas-peter