We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e45a57a commit 7a643b1Copy full SHA for 7a643b1
packages/ngtools/webpack/src/resource_loader.ts
@@ -49,7 +49,9 @@ export class WebpackResourceLoader {
49
50
// Simple sanity check.
51
if (filePath.match(/\.[jt]s$/)) {
52
- return Promise.reject('Cannot use a JavaScript or TypeScript file for styleUrl.');
+ return Promise.reject(
53
+ 'Cannot use a JavaScript or TypeScript file for styleUrl or templateUrl.',
54
+ );
55
}
56
57
const outputOptions = { filename: filePath };
0 commit comments