0

I'm trying replace some rev'd urls in my distribution bundles. We're using isomorphic React.js and there are a few bundle.js paths that need to be the same on client and server, so I need to update these refs in the rev'd bundle. I'd like to only update the minified bundle, because if I update the bundle with the urls and then minify, my rev hash will be different. So I'd like to only update the rev'd and minified bundle.

Is it okay to do this? Will my uglifyjs mangle the url paths so much so that replacing the string at this point is moot?

Also, any other suggestions appreciated.

4m1r
  • 12,234
  • 9
  • 46
  • 58
  • 1
    strings are not minified so should be safe to replace them. keep in mind that minified js is just a js - just with ugly variable names ;) – lujcon Feb 12 '15 at 19:55
  • awesome, thanks for the sanity check. – 4m1r Feb 12 '15 at 20:03

0 Answers0