0
私は複数のJSファイルが必要なプロジェクトを持っています。いくつかのユースケース:Ember CLIのプロジェクト資産を複数のJSファイルにコンパイル
- IE専用polyfillsは、私は条件付きコメントを含めると モバイルデバイスは、私は怠惰な負荷
燃えさしのCLIは、複数のJSファイルの複数のCSSファイルは可能ですが、ではないことが表示されます:
venter code herear app = new EmberApp({
outputPaths: {
app: {
js: {
app: '/assets/app.js',
ie: '/assets/ie.js'
}
}
}
});
エラー:
Object #<Object> has no method 'slice'
TypeError: Object #<Object> has no method 'slice'
at module.exports (/Users/<me>/Projects/<my-app>/node_modules/ember-cli/node_modules/broccoli-sourcemap-concat/index.js:15:30)
at EmberApp.concatFiles (/Users/<me>/Projects/<my-app>/node_modules/ember-cli/lib/broccoli/ember-app.js:261:10)
at EmberApp.javascript (/Users/<me>/Projects/<my-app>/node_modules/ember-cli/lib/broccoli/ember-app.js:864:16)
at EmberApp.toArray (/Users/<me>/Projects/<my-app>/node_modules/ember-cli/lib/broccoli/ember-app.js:1159:10)
at EmberApp.toTree (/Users/<me>/Projects/<my-app>/node_modules/ember-cli/lib/broccoli/ember-app.js:1181:30)
at Object.<anonymous> (/Users/<me>/Projects/<my-app>/Brocfile.js:35:22)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
ベンダー以外の複数のJSファイルについては、ガイドには何もありません。私が紛失しているものがあるのか、これが欠けているのでしょうか?
これは、プロジェクトがEmberアプリケーションを介して複数のJavaScriptファイルを生成する問題を解決しません。任意の数と種類のファイルを「インクルード」するのは簡単ですが、それは元の質問の内容ではありません。 –