Skip to content

24 ways to impress your friends

Vote down?

Raymond Camden

I wonder if you could speak to URL handling. That may not be the best way to describe it, but consider this. You have Grunt automatically concating and minimizing your JS files. So I assume that your HTML file than just has one script tag – pointing to the nice minimized file.

But(!) – if you are working on your JS, it is going to be difficult to debug a minimized, concatted file. (Yes, Chrome Source Maps can help, but ignore that for now.)

So do you just ignore the .min file while you are working? If so, does that mean you have you to edit your HTML before going to production to change the 3 script tags to one? Can you show an example of that?

Ditto for images. If you are optimizing them on the fly, do you then just point to the optimized version when writing IMG tags?