Created
May 24, 2012 16:42
-
-
Save benjitastic/2782647 to your computer and use it in GitHub Desktop.
grunt JS - multiple dists
This file contains 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
module.exports = function(grunt) { | |
// Your grunt code goes in here. | |
grunt.initConfig({ | |
// Lists of files to be minified with UglifyJS. | |
min: { | |
dist: { | |
src: ['jquery.shorthand.js', 'jquery.guid.js', '../jquery.cookies.2.2.0.min.js', 'gallery/underscore-min.js', 'gallery/json2.js', 'backbone-min.js', 'application.js', 'application/routers.js', 'application/models.js', 'application/collections.js', 'application/templates.js', 'views.js'], | |
dest: '../min/gallery/app_files.js', | |
separator: ';' | |
}, | |
dist: { | |
src: ['iscroll.js', 'jquery.guid.js', '../jquery.cookies.2.2.0.min.js', 'gallery/underscore-min.js', 'gallery/json2.js', 'backbone-min.js', 'application.js', 'application/routers.js', 'application/models.js', 'application/collections.js', 'application/templates.js', 'templates_mobile.js', 'views.js'], | |
dest: '../min/gallery/mobile_app_files.js', | |
separator: ';' | |
} | |
} | |
}); | |
grunt.registerTask('default', 'min'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment