gatsby-plugin-typescript-scss-modules-cjs
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 https://github.com/Jimdo/typings-for-css-modules-loader WebPack plugin reads the CSS file and generates a .d.ts file alongside your css.

Installing

First, install the plugin...

npm i gatsby-plugin-typescript-css-modules

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

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

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)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |