Skip to content

sumally/typed-css-modules-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typed-css-modules-loader

Simplest webpack loader for https://github.com/Quramy/typed-css-modules

I suggest using it as preloader. Unless you change the options (see below), it will generate .css.d.ts files near the .css. Please take a look at this discussion to make a decision.

You can affect how typed-css-modules behaves by using query parameters. The loader will pass any query parameters you specify to the constructor of the DtsCreator class. For more info on available options, please take a look here: DtsCreator constructor.

const settings = {
  // ...
  module: {
    preLoaders: [
      // ...
      {
        test: /\.css$/,
        exclude: /node_modules/,
        loader: 'typed-css-modules'
        // or in case you want to use parameters:
        // loader: 'typed-css-modules?outDir=/tmp'
      }
    ],
  }
  // ...
}

About

Webpack loader for typed-css-modules auto-creation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%