We’re using MX Web 10.6.2 and beginning to implement more client-side JavaScript. I noticed that the publish process creates a <script> tag in the body of “index.html” and inserts all of the project’s client-side JavaScript (that isn’t directly linked with a <script> tag pointing to a file name) into it.
The bulk isn’t a problem at the moment though I’m not keen on development team code comments being included. I expect that the bulk will increase substantially as we implement more JavaScript though. Is there a way to run a minify/uglify process over the project’s JavaScript during publishing? I’m thinking of something akin to a pre-build event hook that’s part of some IDEs used for other languages.
