yue/yackage

Failed to minify Error

Closed this issue · 2 comments

I'm reporting here several minifier's errors and warning that I have seen while building my web app project:

p-192-168-22-127:webservice loretoparisi$ yackage build out
Failed to minify /lib/tokenizer/jieba/finalseg.js: Unexpected token name «define», expected punc «,» at line 6 col 1
Failed to minify /lib/tokenizer/jieba/finalseg/prob_emit.js: Unexpected token string «一», expected punc «,» at line 1 col 10
Failed to minify /node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js: sym.definition is not a function at line undefined col undefined
Failed to minify /node_modules/jsdom/lib/old-api.js: sym.definition is not a function at line undefined col undefined
Failed to minify node_modules/cssom/lib/Parser.js: Unexpected token: eof (undefined) at line 362 col 11
Failed to minify node_modules/handlebars/lib/handlebars.runtime.js: Unexpected token: name (base) at line 2 col 7
Failed to minify node_modules/handlebars/lib/handlebars/base.js: Unexpected token: name (Utils) at line 1 col 7
Failed to minify node_modules/handlebars/lib/handlebars/compiler/base.js: Unexpected token: name (Helpers) at line 3 col 7
Failed to minify node_modules/handlebars/lib/handlebars/runtime.js: Unexpected token: name (Utils) at line 1 col 7
Failed to minify node_modules/jsonwebtoken/.history/lib/claim_checks_20170611142053.js: Unexpected token: punc (}) at line 3 col 0
Failed to minify node_modules/jsonwebtoken/.history/lib/claim_checks_20170611142101.js: Unexpected token: punc (}) at line 3 col 0
Failed to minify node_modules/jsonwebtoken/.history/lib/matchers_20170611141949.js: Unexpected token punc «.», expected punc «(» at line 3 col 6
Failed to minify node_modules/jsonwebtoken/.history/lib/payload_checks_20170611163842.js: Unexpected token keyword «var», expected punc «(» at line 62 col 0
Failed to minify node_modules/jsonwebtoken/.history/tokenGenerator_20170714115012.js: Unexpected token eof «undefined», expected punc «{» at line 1 col 26
Failed to minify node_modules/jsonwebtoken/.history/tokenGenerator_20170714115225.js: Unexpected token eof «undefined», expected punc «{» at line 1 col 63
Failed to minify node_modules/jsonwebtoken/.history/tokenGenerator_20170714115742.js: Unexpected token: punc (}) at line 7 col 0
Failed to minify node_modules/jsonwebtoken/.history/tokenGenerator_20170714115925.js: Unexpected token: punc (}) at line 7 col 0
Failed to minify node_modules/jsonwebtoken/.history/tokenGenerator_20170714121630.js: signOptions redeclared at line 10 col 8
Failed to minify node_modules/jsonwebtoken/.history/tokenGenerator_20170714121750.js: signOptions redeclared at line 10 col 8
Failed to minify node_modules/jsonwebtoken/.history/tokenGenerator_20170714122022.js: signOptions redeclared at line 10 col 8
Failed to minify node_modules/jsonwebtoken/.history/tokenGenerator_20170714122100.js: signOptions redeclared at line 10 col 8
Failed to minify node_modules/jsonwebtoken/.history/verify_2017062501755.js: Unterminated multiline comment at line 137 col 2
Failed to minify node_modules/jsonwebtoken/.history/verify_20170714174538.js: Unexpected token punc «;», expected punc «{» at line 9 col 75
Failed to minify node_modules/node-webcrawler/node_modules/node-uuid/v3.js: Unterminated string constant at line 7 col 22
Failed to minify node_modules/request-promised/node_modules/node-uuid/v3.js: Unterminated string constant at line 7 col 22
Failed to minify node_modules/rx/src/core/headers/asyncintro.js: Unexpected token: eof (undefined) at line 33 col 0
Failed to minify node_modules/rx/src/core/headers/intro.js: Unexpected token: eof (undefined) at line 29 col 0
Failed to minify node_modules/rx/src/core/headers/liteintro-compat.js: Unexpected token: eof (undefined) at line 32 col 0
Failed to minify node_modules/rx/src/core/headers/liteintro.js: Unexpected token: eof (undefined) at line 32 col 0
Failed to minify node_modules/rx/src/core/headers/litetestintro-compat.js: Unexpected token: eof (undefined) at line 32 col 0
Failed to minify node_modules/rx/src/core/headers/litetestintro.js: Unexpected token: eof (undefined) at line 32 col 0
Failed to minify node_modules/rx/src/core/headers/outro.js: Unexpected token: punc (}) at line 1 col 0
Failed to minify node_modules/rx/src/core/headers/subintro.js: Unexpected token: eof (undefined) at line 32 col 0
Failed to minify node_modules/rx/src/core/headers/suboutro.js: Unexpected token: punc (}) at line 2 col 0
Failed to minify node_modules/rx/src/core/headers/testintro.js: Unexpected token: eof (undefined) at line 33 col 0
Failed to minify node_modules/rx/src/core/internal/deprecate.js: Unexpected token: eof (undefined) at line 5 col 0
Failed to minify node_modules/soap/node_modules/node-uuid/v3.js: Unterminated string constant at line 7 col 22

You can just ignore the errors, currently when failed to minify a file, the original file would be added directly. Maybe I should add a flag to suppress the errors.

Thanks!