grunt-jquerytransform

Grunt task for transforming HTML files with jQuery

jQuery Transform

grunt-jquerytransform is a grunt task for transforming HTML files with jQuery, based on Mickael Daniel's original work in h5bp/node-build-script.

npm install grunt-jquerytransform
grunt.initConfig({
  jquerytransform: {
    files: ['**/*.html'], // All HTML files
    transform: function($) {
      // For styling bullet separate from text
      $('.post li').wrapInner('<span />');
    }
  }
});
 
grunt.loadNpmTasks('grunt-jquerytransform');