Menu
Cantara
Cantara
    • Introduction
      • Introduction
      • Quick Start
    • Guides
      • Intro
      • Installing and getting ready
      • Initializing a new project
      • Developing your app
      • Adding new apps/packages
      • Testing with Jest
      • Environment variables
      • Building packages/apps
      • Deploying serverless endpoints
      • Publishing packages to NPM
      • Continous Integration
      • 🔗 Live Link
      • Runtime App Presets (RAPs)
      • Executing arbitrary commands for apps/packages
      • E2E/Integration testing with Cypress
      • Migrating to newer Cantara versions
    • Advanced
      • CSS
      • Overwriding the External Dependencies Map for Webpack
      • TypeScript + CSS Modules
      • How to use Tailwind CSS
      • cantara_config_js
    • Other
      • Official starter templates
    • For maintainer
      • Developing Cantara

    TypeScript + CSS Modules

    When using CSS Modules, it's handy to have correctly typed imports during development.

    autocomplete

    This should work out of the box with Cantara thanks to an awesome language server plugin.

    Because it's just a language server plugin, this won't work during build time and is just a helper when developing your app with VSCode.

    To use this plugin with Visual Studio Code, you should set your workspace's version of TypeScript, which will load plugins from your tsconfig.json file.

    For instructions, see: Using the workspace version of TypeScript

    Edit this page
    Previous

    « Overwriding the External Dependencies Map for Webpack

    Next

    How to use Tailwind CSS »

    Links

    • Getting started
    • Guides
    • Github