AdamEsterle free asked 6 years ago


When I combine the mdb.js file with my gulp tasks, it does not work. I think it's because there is an error here line: 386ish b(h, "reverse", {loop: !0, delay: a.delay})), a.queue !== !1 && d.dequeue(h, a.queue) Says "b" is an "invalid call target" JS Lint may be able to help out. I realize MDB 4 is very new. So I can be patient :-) Thank you for the great product!

ijabit free answered 6 years ago


Make sure when you uglify the JS, that you turn the mangle option off. I turned that off for all of my vendor scripts: .pipe(uglify({ mangle: false }))

Michal Szymanski staff answered 6 years ago


Ahh, I'm tired and I've read "sass" instead of "js" . I'm sorry. I'll check it and come back to you.

AdamEsterle free answered 6 years ago


No error messages. The SASS works fine, just the JS files when I use Gulp. It's so weird actually. When I reference mdb.js via a <script> tag it works fine. But if I combine jquery.js, bootstrap.js, and mdb.js into one js file, that is when it messes up. After trial and error, I realized it was the mdb.js (mdb 4). However, this may be a gulp error. Perhaps there is code in the mdb.js file that gulp cannot handle and therefore messes up when you try to concatenate files rather than referencing all three separately with <script> tags. But I thought I would pass on the information to you anyways :-)

Michal Szymanski staff answered 6 years ago


Hi, thank you for nice words, I'm happy you find MDB useful. About the issue: any more error messages? I compile MDB scss files via Gulp without any problems.

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags