This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(1) File: | |
/*jslint node: true */ | |
"use strict"; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(1) Install usemin, copy, concat and uglify: | |
npm install --save-dev grunt-usemin | |
npm install --save-dev grunt-contrib-copy | |
npm install --save-dev grunt-contrib-concat | |
npm install --save-dev grunt-contrib-uglify | |
(2) Set up a build block in your HTML file: | |
<!DOCTYPE html> |