danguilherme / ng-cli-pug-loader

:sparkles: Angular schematics to add .pug to your project
GNU General Public License v3.0
56 stars 17 forks source link

Better future-proofing? #3

Closed selipso closed 6 years ago

selipso commented 6 years ago

It seems like the angular team is changing the inner workings of the common.js webpack file. Is there a possible way to add the loaders as part of the angular.json file? Relevant issue for reference:

https://github.com/angular/angular-cli/issues/10879

danguilherme commented 6 years ago

I'm afraid I can't do anything about it :(

The only thing I can do is to wait for the next releases of the CLI, and fix the script if it's broken in any of these releases (PRs are always welcome). What I could do was to separate the file path to easily change if any release moves it.

We need to remember that there's not an "official way" to add loaders to Angular CLI's webpack config, so this is a tricky workaround.

selipso commented 6 years ago

The future is definitely hard to predict. On the other hand there will always be some node_modules folder that can be edited to use a custom loader. Going to close as answered.