1.3.5 • Published 3 years ago
ts-emeth v1.3.5
TS-Emeth
Tool for creating types for css modules with typescript typing and emeth.
Usage
Run it as a background process
$ yarn run tse -w ./src/**/*.cssmor in a single shot
$ yarn run tse ./src/**/*.cssmHelp
$ yarn run tse -hRun with mrbuilder
Add ts-emeth as a mrbuilder plugin before the @mrbuilder/plugin-css. Order
unfortunately matters.
"mrbuilder": {
"plugins": [
"ts-emeth",
[
"@mrbuilder/plugin-css",
{
"modules": "/\\.cssm$/"
}
]
]
}Run with postcss
Add the ts-emeth as a plugin for postcss.
postcss.plugins([...,require('ts-emeth')()]).process('css');