How does this work when you concat and minify your stuff on save?
I haven't tried, but life is better if you don't minify on save. I assume you're using Grunt or Gulp; make a "build" task and use that for minifying. Your preprocessing time will go down, and that means getting your changes into the browser faster. Feels better than having to pause before hitting refresh, or worse, having to refresh twice.
Sublime Web Inspector: Debug JavaScript in Sublime
11–12 of 12 posts
Re: Sublime Web Inspector: Debug JavaScript in Sublime
#12Earlier quoted context omitted.
I haven't tried, but life is better if you don't minify on save. I assume you're using Grunt or Gulp; make a "build" task and use that for minifying. Your preprocessing time will go down, and that means getting your changes into the browser faster. Feels better than having to pause before hitting refresh, or worse, having to refresh twice.
Yes, using Gulp. Do you have a release script which does the final build on deployment? How does that work exactly? Don't you need to have a specific markup just for production then?
[0] Actually, that's not 100% true - I read from an environment variable server-side and if it's in dev mode, I render the LiveReload script tag. Actual assets remain the same though.