José Quiñones Flores 4564da0130 Added Laravel project and removed sensitive data | il y a 4 ans | |
---|---|---|
.. | ||
node_modules | il y a 4 ans | |
tasks | il y a 4 ans | |
LICENSE-MIT | il y a 4 ans | |
README.md | il y a 4 ans | |
package.json | il y a 4 ans |
Minify HTML
This plugin requires Grunt ~0.4.0
If you haven’t used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you’re familiar with that process, you may install this plugin with this command:
npm install grunt-contrib-htmlmin --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-contrib-htmlmin');
Run this task with the grunt htmlmin
command.
Minifies HTML using html-minifier. Bugs regarding the output should be reported here.
See the html-minifier options.
grunt.initConfig({
htmlmin: { // Task
dist: { // Target
options: { // Target options
removeComments: true,
collapseWhitespace: true
},
files: { // Dictionary of files
'dist/index.html': 'src/index.html', // 'destination': 'source'
'dist/contact.html': 'src/contact.html'
}
},
dev: { // Another target
files: {
'dist/index.html': 'src/index.html',
'dist/contact.html': 'src/contact.html'
}
}
}
});
grunt.registerTask('default', ['htmlmin']);
<ng-include>
<ng:include>
.Task submitted by Sindre Sorhus
This file was generated on Mon May 05 2014 02:02:08.