Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

javascript bundles always produce files with zero bytes #50

Closed
ingebretsen opened this Issue · 8 comments

2 participants

Robby Ingebretsen Lakshan Perera
Robby Ingebretsen

For reference, you can try the example site in the root of the main branch. I've tried it two computer (both macs, Mountain Lion and Lion) and every time the css files are generated properly but all.js has zero bytes. I've seen the same behavior on my own site.

Lakshan Perera
Owner

Can you check and let me know the version of Uglify-js installed on your machines?

Robby Ingebretsen
Lakshan Perera
Owner

Punch requires Uglify-Js version above 1.3.3. Can you give a try after upgrading the package?

Robby Ingebretsen
Lakshan Perera
Owner

For the time being, it's better if you can downgrade to 1.3.3.

I'll check if there's an issue with 2.2.2

Robby Ingebretsen
Robby Ingebretsen

Moving to 1.3.3 did the trick!

I had to update the module from inside of /usr/local/share/npm/lib/node_modules/punch

I'm not an npm pro by any means, but that would lead me to believe that punch is not specifying which version of uglify is required during its installation and so a default installation is getting 2.2 (or whatever is latest).

Either way, I'm good now! Thanks for the help.

Lakshan Perera
Owner

Punch is now (from 0.5.12) using Uglify-JS2 for minification. Having the latest version of Uglify-JS installed will not create any issues.

Lakshan Perera laktek closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.