Socket
Socket
Sign inDemoInstall

gatsby-plugin-typescript-css-modules

Package Overview
Dependencies
5
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gatsby-plugin-typescript-css-modules

A gatsbyjs plugin for using CSS Modules and Typescript


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
18.0 MB
Created
Weekly downloads
 

Readme

Source

Build Status

Gatsby Plugin Typescript CSS Modules

This GatsbyJS plugin allows for using TypeScript along side CSS 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"
]

Keywords

FAQs

Last updated on 29 Dec 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc