Guest User

Untitled

a guest
Oct 24th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. GulpUglifyError: unable to minify JavaScript
  2. Caused by: SyntaxError: Invalid assignment
  3. File: app/assets/js/main.js
  4. Line: 92
  5. invalid assignment [] =
  6.  
  7. [newTitle, newVal] = $('#' + elementId + '-title').text().replace('*', '').split(':');
  8.  
  9. [prodW = 0, prodL = 0, boxL = 0] = currentOption.text().split(/[/-]/);
  10.  
  11. gulp.task('compressJS', function (cb) {
  12. pump([
  13. gulp.src('app/assets/js/*.js'),
  14. uglify(),
  15. gulp.dest('build/js/')
  16. ],
  17. cb
  18. );
  19. });
Add Comment
Please, Sign In to add comment