Socket
Socket
Sign inDemoInstall

typescript-css-modules-loader

Package Overview
Dependencies
15
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    typescript-css-modules-loader

Generate typescript declaration files (.d.ts) for css modules


Version published
Weekly downloads
3
decreased by-50%
Maintainers
1
Install size
3.02 MB
Created
Weekly downloads
 

Readme

Source

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" },
  ],
}

FAQs

Last updated on 21 Aug 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc