1.1.2 • Published 5 years ago

css-type-loader v1.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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