@@ -80,18 +80,6 @@ module.exports = function(grunt) {
8080
8181 aws : grunt . file . readJSON ( 'aws.json' ) ,
8282
83- concat : {
84- dist : {
85- options : {
86- 'report' : 'gzip' ,
87- 'banner' : '<%= banner %>'
88- } ,
89- src : [ 'src/js/init.js' ] ,
90-
91- dest : 'dist/snowplow.js'
92- }
93- } ,
94-
9583 browserify : {
9684 dist : {
9785 options : {
@@ -108,11 +96,23 @@ module.exports = function(grunt) {
10896 ]
10997 } ,
11098 files : {
111- 'dist/bundle.js' : [ 'dist/snowplow .js' ]
99+ 'dist/bundle.js' : [ 'src/js/init .js' ]
112100 }
113101 }
114102 } ,
115103
104+ concat : {
105+ dist : {
106+ options : {
107+ 'report' : 'gzip' ,
108+ 'banner' : '<%= banner %>'
109+ } ,
110+ src : [ 'dist/bundle.js' ] ,
111+
112+ dest : 'dist/snowplow.js'
113+ }
114+ } ,
115+
116116 min : {
117117 dist : {
118118 options : {
@@ -185,7 +185,7 @@ module.exports = function(grunt) {
185185 grunt . loadNpmTasks ( 'grunt-invalidate-cloudfront' ) ;
186186 grunt . loadNpmTasks ( 'grunt-browserify' ) ;
187187
188- grunt . registerTask ( 'default' , [ 'concat ' , 'browserify ' , 'min' ] ) ;
188+ grunt . registerTask ( 'default' , [ 'browserify ' , 'concat ' , 'min' ] ) ;
189189 grunt . registerTask ( 'publish' , [ 'concat' , 'min' , 's3:not_pinned' , 'invalidate_cloudfront:not_pinned' ] ) ;
190190 grunt . registerTask ( 'publish-pinned' , [ 'concat' , 'min' , 's3' , 'invalidate_cloudfront' ] ) ;
191191
0 commit comments