Skip to content

timohofmeijer/gatsby-transformer-typescript-css-modules

 
 

Repository files navigation

Forked From

https://github.com/jcreamer898/gatsby-plugin-typescript-css-modules

Gatsby Plugin Typescript CSS Modules

This GatsbyJS plugin adds typings-for-css-modules-loader to your configuration

Import styles normally

import * as styles from "./page.module.css";

and typings-for-css-modules-loader will read the CSS file and generates a .d.ts file alongside your css.

Installing

First, install the plugin...

npm i gatsby-transformer-typescript-css-modules --save

Then, add the plugin to your gatsby-config.js...

  // ...
  "gatsby-transformer-typescript-css-modules"
]

About

A gatsbyjs plugin for using CSS Modules and Typescript

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 89.8%
  • JavaScript 10.2%