purifycss / gulp-purifycss

Removed unused CSS with the gulp build tool
MIT License
335 stars 21 forks source link

updated readme to include options sections and example #19

Open rob-moore opened 7 years ago

rob-moore commented 7 years ago

I made the readme a little more verbose when it comes to specifying all the options that are available to purifycss.

I took the verbiage from the purifycss readme and updated the example usage in the readme.

albertvolkman commented 7 years ago

Are you able to get the options to work? I'm doing this and the file does not get minimized-

.pipe(purify(['./index.html']), {
  minify: true,
})
craftedsystems commented 7 years ago

@albertvolkman you need to place the options object inside the round brackets.

.pipe(purify(['./index.html'], {    
  minify: true,     
}))