Sails: Running sails@beta in production mode fails

Created on 19 Mar 2014  路  1Comment  路  Source: balderdashy/sails

I tried running sails version @beta in production mode:

...
>> Uglifying source ".tmp/public/concat/production.js" failed. 
Warning: Uglification failed.
Unexpected token: punc (}). 
Line 3807 in .tmp/public/concat/production.js
 Use --force to continue.
error: A Grunt error occurred-- please fix it, then restart Sails to continue watching       assets
** Grunt :: Fatal Error ** 
Running "uglify:dist" (uglify) task
{ message: 'Unexpected token: punc (})',
line: 3807,
col: 3,
pos: 98408,
stack: 'Error\n    at new JS_Parse_Error

>All comments

@kokujin this looks to be a problem uglify is having minifying your client-side javascript; check out http://stackoverflow.com/questions/17328998/codekit-uglify-js-unexpected-token-punc-error

Was this page helpful?
0 / 5 - 0 ratings