Skip to content

Instantly share code, notes, and snippets.

@benjitastic
Created May 24, 2012 16:42
Show Gist options
  • Save benjitastic/2782647 to your computer and use it in GitHub Desktop.
Save benjitastic/2782647 to your computer and use it in GitHub Desktop.
grunt JS - multiple dists
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