swannodette / mies

Minimal ClojureScript project template
Eclipse Public License 1.0
369 stars 49 forks source link

Use of projectname.min.js #13

Closed jdeisenberg closed 9 years ago

jdeisenberg commented 9 years ago

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?

swannodette commented 9 years ago

@jdeisenberg it's just a JavaScript convention. It's an oversight not to provide an html page for the release version.

swannodette commented 9 years ago

Fixed in master