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

@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.

@laktek
Owner

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

@ingebretsen
@laktek
Owner

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

@ingebretsen
@laktek
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

@ingebretsen
@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.

@laktek
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.

@laktek 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.