由于角度变化2 rc.6捆绑不再有效! 正如你可以从rc.6的变化看: https://github.com/angular/angular/blob/master/CHANGELOG.md由于角度变化2 rc.6 jspm捆绑不再有效
这是一束甚至在更改日志引用到systemjs现在是如何使用的大修。因此,我们不能再使用命令:
jspm bundle src/App.js ./dist/index.js --minify --skip-source-maps
,因为这将导致以下错误:
[08:40:33] 'x_bundle' errored after 18 s
[08:40:33] Error: Command `jspm bundle src/App.js ./dist/index.js --minify --skip-source-maps` failed with exit code 1
at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
Command `jspm bundle src/App.js ./dist/index.js --minify --skip-source-maps` failed with exit code 1
[08:40:33] 'production' errored after 31 s
[08:40:33] Error in plugin 'run-sequence(x_bundle)'
Message:
Command `jspm bundle src/App.js ./dist/index.js --minify --skip-source-maps` failed with exit code 1
Details:
killed: false
code: 1
signal: null
cmd: jspm bundle src/App.js ./dist/index.js --minify --skip-source-maps
stdout: Building the bundle tree for src/App.js...
stderr:
err Error: SyntaxError: Unexpected token: string (./src/platform-browser-dynamic) (line: 2345, col: 16, pos: 104806)
Error
at new JS_Parse_Error (eval at <anonymous> (C:\Users\root\AppData\Roaming\npm\node_modules\jspm\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:1545:18)
at js_error (eval at <anonymous> (C:\Users\root\AppData\Roaming\npm\node_modules\jspm\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:1553:11)
at croak (eval at <anonymous> (C:\Users\root\AppData\Roaming\npm\node_modules\jspm\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2092:9)
at token_error (eval at <anonymous> (C:\Users\root\AppData\Roaming\npm\node_modules\jspm\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2100:9)
at unexpected (eval at <anonymous> (C:\Users\root\AppData\Roaming\npm\node_modules\jspm\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2106:9)
at semicolon (eval at <anonymous> (C:\Users\root\AppData\Roaming\npm\node_modules\jspm\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2126:56)
at simple_statement (eval at <anonymous> (C:\Users\root\AppData\Roaming\npm\node_modules\jspm\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2317:73)
at eval (eval at <anonymous> (C:\Users\root\AppData\Roaming\npm\node_modules\jspm\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2186:19)
让我补充一点,这是失败export * from './src/platform-browser-dynamic';
在/ src中的行/ platform-browser-dynamic
由于ng2 rc.6的工作原理,现在几乎不存在缩小问题,但我不确定有多少移动部件...
这种努力rc.6
我希望从球队有人可以帮助,因为我们不可能去生产,直到我们得到这个完美的解决之前,
问候
肖恩。
也许不是问题,但尝试禁用mangling。 – Clint
是禁用它...相同:( – born2net