gatsby-plugin-typescript-scss-modules

1.0.7 • Public • Published

Gatsby Plugin Typescript SCSS Modules

This GatsbyJS plugin facilitates the use of SCSS imports with TypeScript. Using this plugin, you can import an *.scss file and webpack will automatically generate typings.

The code is a hybrid of gatsby-plugin-typescript-css-modules and Gatsbys official SCSS plugin.

Ultimately, this is an extension of typings-for-css-modules-loader.

Use

In my experience, this module requires node-sass and sass-loader to be dependencies of the gatsby project.

npm i gatsby-plugin-typescript-scss-modules

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

  "gatsby-plugin-typescript-scss-modules"
]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.7
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.7
    1
  • 1.0.6
    1
  • 1.0.5
    1

Package Sidebar

Install

npm i gatsby-plugin-typescript-scss-modules

Weekly Downloads

3

Version

1.0.7

License

ISC

Last publish

Collaborators

  • cjsheets