Closed Yermo closed 2 years ago
I've created a patch for @angular-devkit/build-angular/@ngtools/webpack 13.1.2 that calls ifdef-loader on all ts, html, and scss files in a project:
https://gist.github.com/Yermo/22143234bce8e9ab7a4711f7069f5178
It relies on:
"patch-package": "^6.2.2", "dotenv-parse-variables": "^1.0.1"
Title says it all. I'm trying to upgrade from Angular 10 to 13. Using the patch provided in another thread I had ifdef-loader working but it looks like the whole webpack setup has changed drastically in Angular 13 so the patch no longer works.
I've tried to use "ifdef-loader": "^2.3.0" with "@angular-builders/custom-webpack": "^13.0.0" using https://medium.com/angular-in-depth/customizing-angular-cli-build-an-alternative-to-ng-eject-v2-c655768b48cc as a guide.
My custom config is: