Skip to content

Commit ea21ac2

Browse files
committed
Fix prefixes for concat/minify (closes #75)
1 parent dd03dbd commit ea21ac2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Gruntfile.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ module.exports = function (grunt) {
1919
banner: '/**\n' + ' * <%= pkg.description %>\n' +
2020
' * @version v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
2121
' * @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' + ' */'
2523
},
2624
clean: [ '<%= builddir %>' ],
2725
concat: {
26+
options: {
27+
banner: '<%= meta.banner %>\n(function (window, angular, undefined) {\n',
28+
footer: '})(window, window.angular);'
29+
},
2830
build: {
2931
src: [
3032
'<banner:meta.banner>',
@@ -42,6 +44,9 @@ module.exports = function (grunt) {
4244
}
4345
},
4446
uglify: {
47+
options: {
48+
banner: '<%= meta.banner %>\n'
49+
},
4550
build: {
4651
files: {
4752
'<%= builddir %>/<%= pkg.name %>.min.js': ['<banner:meta.banner>', '<%= concat.build.dest %>']

0 commit comments

Comments
 (0)