Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sudharsanmit opened this issue Oct 7, 2016 · 0 comments

Comments

@sudharsanmit
Copy link

sudharsanmit commented Oct 7, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant