@intrnl/rollup-plugin-postcss
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

rollup-plugin-postcss

Bundle CSS stylesheets with PostCSS

Usage

npm install --save-dev @intrnl/rollup-plugin-postcss
# pnpm install --save-dev @intrnl/rollup-plugin-postcss
# yarn add --dev @intrnl/rollup-plugin-postcss
// rollup.config.js
import { postcss as postcssPlugin } from '@intrnl/rollup-plugin-postcss';

export default {
  input: 'src/index.js',
  plugins: [
    postcssPlugin(),
  ],
};

Options

  • include?: string | RegExp | (string | RegExp)[] | null Files to include, defaults to matching CSS files only
  • exclude?: string | RegExp | (string | RegExp)[] | null Files to exclude
  • plugins?: postcss.Plugin[]
    PostCSS plugins to use
  • modules?: boolean | 'auto' | ((fileName: string) => string)
    Enable CSS modules, defaults to auto where only .module.xxx gets matched
  • modulesOptions?: CSSModulesOptions
    Options for CSS modules
  • minify?: boolean
    Minify bundled CSS, disabled by default
  • minifyOptions?: CleanCSS.Options Options for CleanCSS minifier
  • sourcemap?: boolean | 'inline' Generate sourcemap, only emitted depending on your bundle output options, enabled by default

Readme

Keywords

none

Package Sidebar

Install

npm i @intrnl/rollup-plugin-postcss

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

13.5 kB

Total Files

6

Last publish

Collaborators

  • intrnl