Compress mustache.js to mustache-min.js #286

Closed
wants to merge 1 commit into
from

Projects

None yet

4 participants

@vlycser
vlycser commented Jan 30, 2013

Compress mustache.js with YUI Compressor, From 15kb to 5kb

@vlycser vlycser Compress mustache.js
Compress mustache.js with YUI Compressor, From 15kb to 5kb
28d2087
@mjackson
Collaborator

I'm assuming this pull request is a mistake. You overwrote the mustache.js source file with a compressed version but you probably meant to write it out to a separate file.

@MrBackKom

in my project,I used YUI compressor,

@bobthecow

If this library ships with a pre-packaged minified version, it should ship with a build script (or at the very least build instructions). Since it's a JavaScript project, my vote for such a script would be grunt + uglify.

@vlycser
vlycser commented Jan 31, 2013

@mjijackson how i can put it in separate file?

@mjackson
Collaborator

@vlycser I believe that YUI compressor has a -o switch that you can use to specify the output file. If you were using uglify you could do this:

$ uglifyjs mustache.js > mustache.min.js
@mjackson
Collaborator
mjackson commented Feb 9, 2013

Since I don't believe this issue was created specifically to discuss including a minified version of mustache.js in the repo, I'm closing this for now.

@mjackson mjackson closed this Feb 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment