diff --git a/public/docs/_examples/webpack/ts/src/app/index.ts b/public/docs/_examples/webpack/ts/src/app/index.ts deleted file mode 100644 index 3b68b4c2d7..0000000000 --- a/public/docs/_examples/webpack/ts/src/app/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -// #docregion -export * from './app.component.ts'; diff --git a/public/docs/_examples/webpack/ts/src/main.ts b/public/docs/_examples/webpack/ts/src/main.ts index 132a0d17f3..8ea0ea84ce 100644 --- a/public/docs/_examples/webpack/ts/src/main.ts +++ b/public/docs/_examples/webpack/ts/src/main.ts @@ -2,7 +2,7 @@ import { bootstrap } from '@angular/platform-browser-dynamic'; import { enableProdMode } from '@angular/core'; -import { AppComponent } from './app'; +import { AppComponent } from './app/app.component'; // #docregion enable-prod if (process.env.ENV === 'production') { diff --git a/public/docs/ts/latest/guide/webpack.jade b/public/docs/ts/latest/guide/webpack.jade index 800f10a047..f39175d7c0 100644 --- a/public/docs/ts/latest/guide/webpack.jade +++ b/public/docs/ts/latest/guide/webpack.jade @@ -412,14 +412,12 @@ code-example(format=""). `webpack/ts/src/app/app.component.ts, webpack/ts/src/app/app.component.html, webpack/ts/src/app/app.component.css, - webpack/ts/src/app/app.component.spec.ts, - webpack/ts/src/app/index.ts`, + webpack/ts/src/app/app.component.spec.ts`, null, `src/app/app.component.ts, src/app/app.component.html, src/app/app.component.css, - src/app/app.component.spec.ts, - src/app/index.ts` + src/app/app.component.spec.ts` ) +makeTabs( @@ -442,15 +440,12 @@ code-example(format=""). * The `AppComponent` in `app.component.ts` imports the application-wide css with a simple `import` statement. * The `AppComponent` itself has its own html template and css files which we load with the `require()` method - supplied by Webpack. Webpack stashes those component-scoped files in the `app.ts` bundle too. + supplied by Webpack. Webpack stashes those component-scoped files in the `app.js` bundle too. * The `vendor.ts` consists of vendor dependency `import` statements that drive the `vendor.js` bundle. The application imports these modules too; they'd be duplicated in the `app.js` bundle if the `CommonsChunkPlugin` hadn't detected the overlap and removed them from `app.js`. -// WHAT GOOD IS THIS? - * We coded our app feature as a [barrel](../glossary.html#barrel). - :marked ## Conclusions