ts-transform-css-modules-transform
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

ts-transform-css-modules-transform

Extract css class names from required css module files for TypeScript. This plugin is based on css-modules-require-hook and so constructor opts are from that repo.

This allows you to do this in TS files:

// Import works
import * as css from 'foo.css'
// require also works
const foo = require('foo.css')

console.log(css.foo)

Append this to before in your compilation step

Package Sidebar

Install

npm i ts-transform-css-modules-transform

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • longlho