laktek / punch

A fun and easy way to build modern websites
http://laktek.github.com/punch
MIT License
1.17k stars 107 forks source link

Javascript does not bundle #132

Open MitchWilkins opened 7 years ago

MitchWilkins commented 7 years ago

Using the built in Asset Bundle method, my Javascript files will not bundle properly. I also tried it with the example files and got the same result. I am running Windows 10.

maniqui commented 7 years ago

What I did was to open the package.json file on node_modules/punch/, edit the dependencies to match exactly the version number Punch was build for. For example, I changed:

"uglify-js": ">= 2.2.3"

To:

"uglify-js": "2.2.3"

And so on for every dependency. In other words, I "pinned" the dependencies. Then, I run:

npm install and that's all. JS bundling started working again.