Questions tagged [purifycss]

18 questions
0
votes
0 answers

running grunt task twice results in error Cannot call method 'forEach' of undefined Use

New to grunt I have successfully used it to run purifycss. Now I want to run purifycss twice with different arguments, and ideally concat the two resulting files afterwards. What I have so far is this Gruntfile: module.exports = function(grunt) { …
Chransen
  • 41
  • 4
0
votes
1 answer

Purifycss not deleting unused css class

I have this code trying to delete the class hello3: var purify = require('purify-css'); var content = '
'; var css = '.hello { color: green; } .hello3 { display: block; }'; var options…
Adrian Martinez
  • 479
  • 1
  • 9
  • 17
0
votes
0 answers

Running PostCSS compiled style sheets through purifycss with Gulp

I have a task that first runs CSS files through postcss plugins and then through purifycss like this: .pipe(postcss(processors)) .pipe(purify(['src/test/html/*.html'])) .pipe(gulp.dest(PLI.target.test.css)); However the CSS is not being purified. …
Ole
  • 41,793
  • 59
  • 191
  • 359
1
2