purifycss / gulp-purifycss

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

TypeError: Cannot read property 'slice' of undefined #18

Open paulchill opened 8 years ago

paulchill commented 8 years ago

Hi Guys,

Getting this error when i run pureifycss for gulp [15:18:33] 'css' errored after 32 s [15:18:33] TypeError: Cannot read property 'slice' of undefined

Here is my gulp file: gulp.task('css', function() { gulp.src(config.app.css.src) .pipe(purify(['*/.js', '*/.html'])) .pipe(minifyCss()) .pipe(concat('bundle.css')) .pipe(gulp.dest(config.app.css.dist)) });

Any ideas?

muslim-niche commented 4 years ago

[12:04:55] Using gulpfile ~/gulpfile.js [12:04:55] Starting 'purifyCSS'... bravo [12:04:55] 'purifyCSS' errored after 509 ms [12:04:55] TypeError in plugin 'gulp-purifycss' Message: Cannot read property 'push' of undefined Details: domainEmitter: [object Object] domain: [object Object] domainThrown: false