ionic2.0-angularfire icon indicating copy to clipboard operation
ionic2.0-angularfire copied to clipboard

Provide Override for node_modules/@ionic/app-scripts/config/rollup.config.js

Open sudharsanmit opened this issue 8 years ago • 0 comments

Instead of modifying node_modules/@ionic/app-scripts/config/rollup.config.js, the ionic-scripts provided option is to do the following:

  1. Create folder config under ionic2.0-angularfire.
  2. Copy the file node_modules/@ionic/app-scripts/config/rollup.config.js (with changes as mentioned by you) to the newly created config folder.
  3. Change rollup.config.js in config folder as below var ngTemplate = require('ng-template').ngTemplate; to var ngTemplate = require('./../node_modules/@ionic/app-scripts/dist/plugins/ng-template').ngTemplate;
  4. Change the "scripts" entry for build in package.json as below - build": "ionic-app-scripts build --rollup ./config/rollup.config.js --dev"

By doing the above, you can eliminate the need to modify a node module script and keep the configuration within your project.

sudharsanmit avatar Oct 07 '16 05:10 sudharsanmit