How to switch between the plovr src URL and compiled src URL

16 views
Skip to first unread message

mvn...@gmail.com

unread,
Sep 27, 2014, 8:35:36 AM9/27/14
to pl...@googlegroups.com
Is there a recommended way of switching between the plovr served js url and optimized compiler output js bundle?

When developing I have this:
<script src="http://localhost:9810/?id=myproj"></script>

For release I want this:
<script src="out.js"></script>

Currently, I'm using separate ant targets in JSP's, but is there some clever way to do this without either some build-time regex replacing or without using something that requires a server (think in Chrome Extensions)?
Reply all
Reply to author
Forward
0 new messages