0.0.4 • Published 2 years ago

rollup-plugin-typed-css-modules v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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