jasonlewis / basset

A better asset management package for Laravel.
http://jasonlewis.me/code/basset
241 stars 76 forks source link

basset:build javascript parse error false positive #212

Open ghost opened 10 years ago

ghost commented 10 years ago

I'm trying to learn how to use laravel 4 and basset and it hasn't been easy.

There's no docs or faq's or even many posts online regarding anything I keep running into.

I have copied a simple .js file ( dependent on jquery ) into public/assets/javascripts and I have tried to run php artisan basset:build from the command line.

I get this response:

[Assetic\Exception\FilterException] An error occurred while running: '/usr/local/bin/node' '/private/var/folders/fv/_f3grpgj6y7dmkfw6lwymm9m0000gn/T/assetic_lessUQ9xT7'

Error Output: ParseError: missing opening { in scripts.js on line 723, column 3: 722 }); 723 };undefined

line 723 is the end of the javascript file, closing a function, so its } .... no idea why its trying to say there's a parse error. It runs in the browser just fine without being ran through the basset:build process.