I encountered an error that arose from trying to gulp --production after modifying a javascript file. The error messages did not provide anything specific to the error.
Gulp-util node package needs to be added and the the bower.task.js file needs to be modified.
For others like me, who do not know how to get the error message, here is what you need to do:
Install Gulp-util
import the Gulp-util by using the following statement: var gutil = require('gulp-util');
Finally, when you are uglifying the code, attach the error handler like this: .pipe(uglify().on('error', gutil.log))
I encountered an error that arose from trying to gulp --production after modifying a javascript file. The error messages did not provide anything specific to the error.
Gulp-util node package needs to be added and the the bower.task.js file needs to be modified.
For others like me, who do not know how to get the error message, here is what you need to do:
Install Gulp-util import the Gulp-util by using the following statement: var gutil = require('gulp-util'); Finally, when you are uglifying the code, attach the error handler like this: .pipe(uglify().on('error', gutil.log))