Open
Description
Instead of modifying node_modules/@ionic/app-scripts/config/rollup.config.js, the ionic-scripts provided option is to do the following:
- Create folder config under ionic2.0-angularfire.
- Copy the file node_modules/@ionic/app-scripts/config/rollup.config.js (with changes as mentioned by you) to the newly created config folder.
- 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; - 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.
Metadata
Metadata
Assignees
Labels
No labels