Gromf icon indicating copy to clipboard operation
Gromf copied to clipboard

UnCSS

Open nusserstudios opened this issue 10 years ago • 1 comments

Has anyone successfully incorporated UnCSS that would be willing to share their code snippet in the Gulp File by chance? I've got mine setup and I get no errors, but it also isn't removing the unused CSS.

// // UnCSS Task // ////////////////////////////////////////////////////////////////////// gulp.task('uncss', function() { return gulp.src([ 'assets/scss/_foundation.scss', 'assets/css/main.min.css' ]) .pipe(uncss({ html: [ 'http://dev/site/',

  ]
}))
.pipe(concat('main.css'))                                  // Concat all css
    .pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('assets/css/'))

});

nusserstudios avatar Nov 25 '15 17:11 nusserstudios

+1

mattcdowning avatar Jan 13 '16 03:01 mattcdowning