This is my first time using Grunt and I\'d like to have it combine all my js modules, each of which is wrapped in an immediately executing function, containing a \'use stric
I usually do it like the jQuery team does it. You create an intro.js
and outro.js
and put everything else in between:
intro.js
;(function( window, undefined ){
'use strict';
outro.js
}( window ));
grunt.js:
concat: {
dist: {
src: [
'js/src/intro.js',
...
'js/src/outro.js'
],
dest: 'js/out/app.js'
}
}