Skip to content

Commit

Permalink
fix(bundle): remove bundling.
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl committed Jun 7, 2016
1 parent b92b236 commit 3b1d496
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions addon/ng2/blueprints/ng2/files/__path__/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"mapRoot": "/",
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
Expand Down
10 changes: 2 additions & 8 deletions lib/broccoli/angular-broccoli-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ class BundlePlugin extends Plugin {
build() {
var relativeRoot = path.relative(process.cwd(), this.inputPaths[0]);
var builder = new Builder(relativeRoot, `${relativeRoot}/system-config.js`);
return builder.bundle('main - [app/**/*]',
`${this.outputPath}/main.js`, {
minify: true
})
.then(() => builder.bundle('app - (app/**/*.js - [app/**/*.js])',
`${this.outputPath}/app/index.js`, {
minify: true
}))

return builder.bundle('main', `${this.outputPath}/main.js`, { minify: true })
.then(() => fse.copySync(`${this.inputPaths[0]}/system-config.js`,
`${this.outputPath}/system-config.js`));
}
Expand Down

0 comments on commit 3b1d496

Please sign in to comment.