Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 81a87c2

Browse files
Foxandxsswardbell
authored andcommitted
docs(webpack): remove barrel
closes #1389
1 parent ad95b04 commit 81a87c2

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

public/docs/_examples/webpack/ts/src/app/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

public/docs/_examples/webpack/ts/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { bootstrap } from '@angular/platform-browser-dynamic';
33
import { enableProdMode } from '@angular/core';
44

5-
import { AppComponent } from './app';
5+
import { AppComponent } from './app/app.component';
66

77
// #docregion enable-prod
88
if (process.env.ENV === 'production') {

public/docs/ts/latest/guide/webpack.jade

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -412,14 +412,12 @@ code-example(format="").
412412
`webpack/ts/src/app/app.component.ts,
413413
webpack/ts/src/app/app.component.html,
414414
webpack/ts/src/app/app.component.css,
415-
webpack/ts/src/app/app.component.spec.ts,
416-
webpack/ts/src/app/index.ts`,
415+
webpack/ts/src/app/app.component.spec.ts`,
417416
null,
418417
`src/app/app.component.ts,
419418
src/app/app.component.html,
420419
src/app/app.component.css,
421-
src/app/app.component.spec.ts,
422-
src/app/index.ts`
420+
src/app/app.component.spec.ts`
423421
)
424422

425423
+makeTabs(
@@ -442,15 +440,12 @@ code-example(format="").
442440
* The `AppComponent` in `app.component.ts` imports the application-wide css with a simple `import` statement.
443441

444442
* The `AppComponent` itself has its own html template and css files which we load with the `require()` method
445-
supplied by Webpack. Webpack stashes those component-scoped files in the `app.ts` bundle too.
443+
supplied by Webpack. Webpack stashes those component-scoped files in the `app.js` bundle too.
446444

447445
* The `vendor.ts` consists of vendor dependency `import` statements that drive the `vendor.js` bundle.
448446
The application imports these modules too; they'd be duplicated in the `app.js` bundle
449447
if the `CommonsChunkPlugin` hadn't detected the overlap and removed them from `app.js`.
450448

451-
// WHAT GOOD IS THIS?
452-
* We coded our app feature as a [barrel](../glossary.html#barrel).
453-
454449
<a id="conclusions"></a>
455450
:marked
456451
## Conclusions

0 commit comments

Comments
 (0)