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

VersionDownloads (Last 7 Days)Tag
1.0.55latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.55
1.0.40

Package Sidebar

Install

npm i typescript-css-modules-loader

Weekly Downloads

5

Version

1.0.5

License

MIT

Last publish

Collaborators

  • chmln