Skip to content

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

Open
@sudharsanmit

Description

@sudharsanmit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions