Grunt task to generate HTML files with stylesheet and script elements.
npm install grunt-htmlgenGrunt (0.4.x) task to generate HTML files with stylesheet and script elements.
htmlgen is a multi task so any targets, files and options should be specified according to the multi task documentation.
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
htmlgen: {
index: {
title: 'Title',
css: ['styles/style1.css', 'styles/style2.css', 'styles/style3.css'],
js: ['scripts/script1.js', 'scripts/script2.js', 'scripts/script3.js'],
dest: 'index.html'
}
}
});
grunt.loadNpmTasks('grunt-htmlgen');
grunt.registerTask('default', ['htmlgen']);
};