@intrnl/rollup-plugin-postcss
v0.1.2
Published
Bundle CSS stylesheets with PostCSS
Downloads
3
Readme
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 onlyexclude?: string | RegExp | (string | RegExp)[] | null
Files to excludeplugins?: postcss.Plugin[]
PostCSS plugins to usemodules?: boolean | 'auto' | ((fileName: string) => string)
Enable CSS modules, defaults toauto
where only.module.xxx
gets matchedmodulesOptions?: CSSModulesOptions
Options for CSS modulesminify?: boolean
Minify bundled CSS, disabled by defaultminifyOptions?: CleanCSS.Options
Options for CleanCSS minifiersourcemap?: boolean | 'inline'
Generate sourcemap, only emitted depending on your bundle output options, enabled by default