How to use custom webpack configuration in Ionic 4

Hi Guys,
How can I extend the Default Webpack config and use a custom one?

I’m trying to use a package that requires some extra webpack configuration and I’m not sure how to do this. Ever since Angular 6, it’s been kind of complicated to do this. Who knows how?

I’ve tried following some tutorial around:

  1. https://javascripttuts.com/using-a-custom-webpack-configuration-in-an-ionic-4-application/
  2. https://alligator.io/angular/custom-webpack-config/

Which led me to

@angular-builders/dev-server:generic

and

@angular-builders/custom-webpack:browser

I, however, ran into an error whenever I try to build, serve.

Schema validation failed with the following errors:
  Data path ".builders['browser']" should have required property 'class'.
1 Like

Anyone have success in this? I need to specify some specific packages to be pollyfilled, and a custom webpack is usually my goto.

Try this https://github.com/manfredsteyer/ngx-build-plus