File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,14 @@ module.exports = function (grunt) {
19
19
banner : '/**\n' + ' * <%= pkg.description %>\n' +
20
20
' * @version v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
21
21
' * @link <%= pkg.homepage %>\n' +
22
- ' * @license MIT License, http://www.opensource.org/licenses/MIT\n' + ' */' ,
23
- prefix : '(function (window, angular, undefined) {' ,
24
- suffix : '})(window, window.angular);'
22
+ ' * @license MIT License, http://www.opensource.org/licenses/MIT\n' + ' */'
25
23
} ,
26
24
clean : [ '<%= builddir %>' ] ,
27
25
concat : {
26
+ options : {
27
+ banner : '<%= meta.banner %>\n(function (window, angular, undefined) {\n' ,
28
+ footer : '})(window, window.angular);'
29
+ } ,
28
30
build : {
29
31
src : [
30
32
'<banner:meta.banner>' ,
@@ -42,6 +44,9 @@ module.exports = function (grunt) {
42
44
}
43
45
} ,
44
46
uglify : {
47
+ options : {
48
+ banner : '<%= meta.banner %>\n'
49
+ } ,
45
50
build : {
46
51
files : {
47
52
'<%= builddir %>/<%= pkg.name %>.min.js' : [ '<banner:meta.banner>' , '<%= concat.build.dest %>' ]
You can’t perform that action at this time.
0 commit comments