Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

Latest commit

 

History

History
22 lines (17 loc) · 319 Bytes

with-rollup.md

File metadata and controls

22 lines (17 loc) · 319 Bytes

With Rollup

Start by installing the Rollup plugin as a dev dependency.

npm i -D rollup-plugin-purgecss
import { rollup } from 'rollup'
import purgecss from 'rollup-plugin-purgecss'

rollup({
  entry: 'main.js',
  plugins: [
    purgecss({
      content: ['index.html']
    })
  ]
})