Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 908 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 908 Bytes

rollup-plugin-purifycss Build Status Coverage Status

Seamless integration between Rollup and PurifyCSS.

Install

$ npm i rollup-plugin-purifycss -D
# or
$ yarn add rollup-plugin-purifycss -D

Usage

import { join } from 'path';
import purifycss from 'rollup-plugin-purifycss';

export default {
  input: join(__dirname, 'main.js'),
  output: [{ file: join(__dirname, 'bundle.js'), format: 'iife' }],
  plugins: [
    purifycss({
      content: ['./**/*.js', './**/*.html'],
      options: {
        info: true,
      },
    }),
  ],
};