Adding custom webpack loaders to Ionic2

  • Copy the stock one from node_modules/@ionic/app-scripts/config to the root of your project
  • Add "ionic_webpack": "./webpack.config.js" to the config stanza of package.json as documented here
  • Be prepared for it to break every time app-scripts is bumped, potentially requiring repeating these steps
1 Like