1.0.14 • Published 2 years ago

parcel-transformer-ts-css-modules v1.0.14

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

parcel-transformer-ts-css-modules

Bridge ts with your css-modules

This transformer is going to create .d.ts according to your .module.css files using typed-css-modules , so that you can reference your css in ts files without type errors.

Installation

npm i -D parcel-transformer-ts-css-modules
or
yarn add -D parcel-transformer-ts-css-modules

At the root of your project, next to your package.json, add a .parcelrc file and paste the following code:

{
  "extends": "@parcel/config-default",
  "transformers": {
    "*.module.css": [
      "parcel-transformer-ts-css-modules",
      "..."
    ]
  }
}

Configuration

If you want to configure underlying ts-css-modules library, create ./tcm.config.json file and configure it as it is described in here.
For instance like this:

{
  "camelCase": true
}

Example

What it does in practice you can see in this example here.

Contribution

This library is open source and depends on your input. Feel free to suggest improvements and/or contribute!

1.0.14

2 years ago

1.0.13

2 years ago

1.0.9

2 years ago

1.0.7

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.12

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago