Skip to content

Instantly share code, notes, and snippets.

@strathmeyer
Last active February 25, 2016 19:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save strathmeyer/6097299 to your computer and use it in GitHub Desktop.
Save strathmeyer/6097299 to your computer and use it in GitHub Desktop.
A simple Gruntfile
module.exports = function(grunt) {
grunt.initConfig({
concat: {
js: {
src: ['js/jquery-2.0.3.min.js',
'js/plugins/*.js',
'js/site.js'],
dest: 'build.js',
options: {
separator: ';'
}
}
},
uglify: {
js: {
src: 'build.js',
dest: 'build.min.js'
}
},
watch: {
js: {
files: ['js/**/*.js'],
tasks: ['default'],
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['concat', 'uglify']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment