The problem is in the 'scripts' task.:
runSequence(['clean:dev', 'clean:dist'],
['scripts', 'compass', 'imagemin'],
'bundle', 'copy');
The tasks do not run in the correct sequence --the 'bundle' task starts before the 'scripts' task finishes. Because of this lag, there is no scripts folder available in the 'dist' folder for the bundle to use.
The problem is in the 'scripts' task.:
runSequence(['clean:dev', 'clean:dist'],
['scripts', 'compass', 'imagemin'],
'bundle', 'copy');
The tasks do not run in the correct sequence --the 'bundle' task starts before the 'scripts' task finishes. Because of this lag, there is no scripts folder available in the 'dist' folder for the bundle to use.