ssrwpo / uglifyjs2

Meteor package that exposes options for UglifyJS2 JS minifier
https://ssrwpo.github.io/uglifyjs2/
MIT License
14 stars 7 forks source link

Error when attempting to run locally #1

Closed davidworkman9 closed 7 years ago

davidworkman9 commented 7 years ago

I get this error when trying to run meteor locally with uglifyjs2 development turned on in my package.json file. I've removed the standard minifier and added this package.

While running registerMinifier callback in package ssrwpo:uglifyjs2:
   native: Unexpected string
   at Object.parse (native)
   at new UglifyJSMinifier (packages/ssrwpo:uglifyjs2/plugin.js:59:32)
   at packages/ssrwpo:uglifyjs2/plugin.js:141:10
davidworkman9 commented 7 years ago

Seemed to only be an issue if I've never ran Meteor locally before with this package without "development": true. Running without, then running with it got me a lot further. However it's been 20 minutes and about 5 of those minutes it's been stuck at Starting your app

PEM-- commented 7 years ago

Did you init a package.json?

This line parses it: https://github.com/ssrwpo/uglifyjs2/blob/master/plugin.js#L59

davidworkman9 commented 7 years ago

I already had one. For some reason it had to be ran once without development, don't know why but it seems to work now. But as I said it gets stuck at "Starting your app". I gave up after letting it run for an hour, on a brand new macbook pro.

PEM-- commented 7 years ago

Thanks for the feedback. Pretty weird. It's like Node is hanging up on a file access.

davidworkman9 commented 7 years ago

Like I said on the forums, got it working! Thanks!