Skip to content

Commit beb5b95

Browse files
shairezTheLarkInn
authored andcommitted
remove useWebpackText section from the README (#38)
Since `useWebpackText` was removed from `awesome-typescript-loader`. This section might be redundant.
1 parent 2b61cff commit beb5b95

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Chain-to loader for webpack that inlines all html and style's in angular2 compon
99
- [Installation](#installation)
1010
- [Requirements](#requirements)
1111
- [Example markup](#example-markup)
12-
- [Awesome Typescript Loader](#awesome-typescript-loader)
1312
- [How does it work](#how-does-it-work)
1413

1514
### Installation
@@ -62,23 +61,6 @@ module: {
6261
}
6362
```
6463

65-
### Awesome Typescript Loader
66-
When using `awesome-typescript-loader` to load your typescript files you have to set the `useWebpackText` property to `true`.
67-
Otherwise the `angular2-template-loader` is not able to chain into it.
68-
69-
Here is an example markup (`tsconfig.json`)
70-
```js
71-
{
72-
"compilerOptions": {
73-
...
74-
},
75-
"awesomeTypescriptLoaderOptions": {
76-
...
77-
"useWebpackText": true // Allows other loaders to be chained to awesome-typescript-loader.
78-
},
79-
}
80-
```
81-
8264
### How does it work
8365
The `angular2-template-loader` searches for `templateUrl` and `styleUrls` declarations inside of the Angular 2 Component metadata and replaces the paths with the corresponding `require` statement.
8466
If `keepUrl=true` is added to the loader's query string, `templateUrl` and `styleUrls` will not be replaced by `template` and `style` respectively so you can use a loader like `file-loader`.

0 commit comments

Comments
 (0)