A gatsbyjs plugin for using SCSS Modules and Typescript
Last updated a year ago by cjsheets .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install gatsby-plugin-typescript-scss-modules-cjs 
SYNC missed versions from official npm registry.

Build Status

Gatsby Plugin Typescript [S]CSS Modules

This GatsbyJS plugin allows for using TypeScript along side SCSS Modules.

It requires you to name your css files as page.module.css, but from there you can import them into TS files.

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

The way this works is, under the covers the WebPack plugin reads the CSS file and generates a .d.ts file alongside your css.


First, install the plugin...

npm i gatsby-plugin-typescript-css-modules

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

  // ...

Current Tags

  • 1.0.4-1                                ...           latest (a year ago)

2 Versions

  • 1.0.4-1                                ...           a year ago
  • 1.0.4                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dev Dependencies (4)
Dependents (0)

Copyright 2014 - 2017 © |