css-type-loader
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

css-type-loader

css type loader for genrate .d.ts file for css module.

Installation

npm install css-type-loader

How to use

Add css-type-loader directly after css-loader in your webpack config.

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          'css-type-loader',
          {
            loader: 'css-loader',
            options: {
              modules: true,
              camelCase: true // this is required for convert dashs to camelCase
            }
          }
        ]
      }
    ]
  }
};

Propose of this repo

  1. To generate types thats vaild syntax in Typescirpt
  2. To sync with the newest css-loader

Thanks for

Package Sidebar

Install

npm i css-type-loader

Weekly Downloads

6

Version

1.1.2

License

MIT

Unpacked Size

5.28 kB

Total Files

6

Last publish

Collaborators

  • jiaronggu