{"repo":"mrmckeb/typescript-plugin-css-modules","free":true,"listed":false,"github":"https://github.com/mrmckeb/typescript-plugin-css-modules","clone":"git clone https://github.com/mrmckeb/typescript-plugin-css-modules.git","description":"A TypeScript language service plugin providing support for CSS Modules.","language":"TypeScript","stars":1395,"topics":["typescript","plugin","css","modules","postcss","sass"],"license":"MIT","category":"dev-tools","readme_excerpt":"typescript-plugin-css-modules A TypeScript language service plugin for CSS Modules. Table of contents - typescript-plugin-css-modules - Table of contents - About this plugin - Installation - Importing CSS - Options - classnameTransform - customRenderer - customTemplate - postcssOptions - rendererOptions - Visual Studio Code - Recommended usage - Alternative usage - Custom definitions - Troubleshooting - About this project About this plugin This plugin provides type information to IDEs and any other tools that work with TypeScript language service plugins. At this time, TypeScript does not support plugins during compilation. This means that this plugin cannot: - provide errors during compilation, or - add CSS module support to your project. For more information, and/or to add support for this feature, see: https://github.com/microsoft/TypeScript/issues/16607. If you need a different solution, these projects might help: - For Jest support, see https://www.npmjs.com/package/jest-css-modules-transform (one of a few options). - For Webpack configuration, see https://webpack.js.org/loaders/css-loader/#pure-css-css-modules-and-postcss for an example. Installation To install with Yarn: To install with npm: Once installed, add this plugin to your tsconfig.json : If you're using Visual Studio Code, please also follow these instructions. As Webpack configurations vary, you may need to provide additional options to this plugin to match your project configuration. For Create React App use","default_branch":null,"files":null,"tree":[],"storefront":"/r/mrmckeb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mrmckeb/typescript-plugin-css-modules/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}