0.1.1 • Published 11 years ago
grunt-jquerytransform v0.1.1
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.
Installation
npm install grunt-jquerytransform
Use
grunt.initConfig({
jquerytransform: {
files: ['**/*.html'], // All HTML files
transform: function($) {
// For styling bullet separate from text
$('.post li').wrapInner('<span />');
}
}
});
grunt.loadNpmTasks('grunt-jquerytransform');