-
Notifications
You must be signed in to change notification settings - Fork 12k
Angular CLI does not apply custom webpack loader #18474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Duplicate of #16544 |
What is the alternative solution to this problem? |
The alternatives depend on what you are trying achieve with your "loader". |
Hi @alan-agius4 https://github.com/NarikMe/narik-webpack-tools/blob/master/narik-compiler-plugin.js |
You need to disable See http://github.com/angular/angular-cli/issues/15861 for some more context. Note: this approach is not supported by the Angular tooling team. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Angular CLI does not apply custom webpack loader
I define custom webpack and add a custom loader for ts or html files but loader transformation does not apply on output.
it seems that Angular CLI uses its own mechanism for reading files.
angular-cli/packages/ngtools/webpack/src/compiler_host.ts
Line 182 in e8e832e
Sample repository: https://github.com/abadakhshan/test-custom-loader
The text was updated successfully, but these errors were encountered: