0.1.3 • Published 7 years ago

ts-transform-css-modules-transform v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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