silverbux / laravel-angular-admin

Laravel + Angularjs + Bootstrap + AdminLTE binded by Gulp workflow Admin Dashboard Boilerplate / Starter.
http://silverbux.github.io/laravel-angular-admin/
MIT License
923 stars 414 forks source link

Errors upon uglify (gulp --production) #79

Open tomdavison12 opened 7 years ago

tomdavison12 commented 7 years ago

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))