Use of projectname.min.js
jdeisenberg opened this issue · comments
J David Eisenberg commented
I could not find any place in the documentation that explained how to use the projectname.min.js file that lein cljsbuild once
creates. Here is some possible documentation:
When you build the project, you will end up with these two files: projectname.js
and projectname.min.js
. The build process creates an index.html
file that references projectname.js
. If you want to use the minimized file, change the lines in index.html
as follows:
<script src="out/goog/base.js" type="text/javascript"></script> <script src="projectname.min.js" type="text/javascript"></script> <!--<script type="text/javascript">goog.require("projectname.core");</script>-->
Also: what is the advantage of using projectname.min.js
?
David Nolen commented
@jdeisenberg it's just a JavaScript convention. It's an oversight not to provide an html page for the release version.
David Nolen commented
Fixed in master