Skip to content

GZLiew/rollup-plugin-typed-css-modules

Repository files navigation

rollup-plugin-typed-css-modules

GitHub npm Build Status

Generate declaration typings with glob support This plugin is extended from typed-css-modules plugin.

Installation

# yarn
yarn add rollup-plugin-typed-css-modules --dev

# npm
npm i rollup-plugin-typed-css-modules --save-dev

Usage

// rollup.config.js
import dts from 'rollup-plugin-typed-css-modules';

export default {
  input: 'src/index.js',
  output: {
    file: 'dist/app.js',
    format: 'cjs'
  },
  plugins: [dts()]
};

Configuration

There are some useful options:

interface RunOptions {
  pattern?: string;
  outDir?: string;
  watch?: boolean;
  camelCase?: boolean;
  namedExports?: boolean;
  dropExtension?: boolean;
  silent?: boolean;
  listDifferent?: boolean;
}

License

MIT

About

typed-css-modules-rollup-plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published