Skip to content
Permalink
Browse files

feat: preserve the first for final process

  • Loading branch information...
sparanoid committed Jun 1, 2016
1 parent af4a3e1 commit fc7cfa4084883ffe3fffc81f27e2167140cf2baf
Showing with 2 additions and 3 deletions.
  1. +2 −3 tasks/uncss-inline.js
@@ -66,9 +66,8 @@ module.exports = function ( grunt ) {
throw error;
}

// remove all `<style>` tags except the last one
var styleTags = $('style');
styleTags.slice(0, styleTags.length - 1).remove();
// remove all `<style>` tags except the first one
$('style').slice(1).remove();
$('style').text(output);
var html = $.html();
grunt.file.write( file.dest, html );

0 comments on commit fc7cfa4

Please sign in to comment.
You can’t perform that action at this time.