typescript-css-modules-loader

1.0.5 • Public • Published

typescript-css-modules

Loader to generate typescript declaration files (.d.ts) from css modules

Installation

yarn add typescript-css-modules

npm i typescript-css-modules

Usage with .css files

{
  test: /\.css$/,
  loaders: [
    { loader: "style-loader" },
    { loader: "typescript-css-modules-loader" },
  ],
}

Usage with preprocessors (Sass, Stylus, Less, etc)

If you're using a preprocessor, put "typescript-css-modules-loader" just before your preprocessor loader.

{
  test: /\.styl$/,
  loaders: [
    { loader: "style-loader" },
    { loader: "typescript-css-modules-loader" },
    { loader: "stylus-loader" },
  ],
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.5
    11
  • 1.0.4
    1

Package Sidebar

Install

npm i typescript-css-modules-loader

Weekly Downloads

7

Version

1.0.5

License

MIT

Last publish

Collaborators

  • chmln