You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
-
82
64
### How does it work
83
65
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.
84
66
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