Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 1.29 KB

README.md

File metadata and controls

55 lines (42 loc) · 1.29 KB

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