0

I'm rebuilding my Ionic 2 app to work in the RC.0 and I'm having an issue with Charts.js. I'm using the ng2-chartjs2 module which works well, but it also needs the Charts.js 2.0 library included in the index.html. I can easily add a script tag to www/index.html - and it works - but on every build it disappears. I presume this is because rollup is re-writing the index.html file on each build and removing the script tag.

How can I get around this? Do I need to configure the rollup build stage to include the Chart.js library? If so, how do I achieve this?

Thanks in advance, Phil

Phil
  • 371
  • 1
  • 4
  • 13

1 Answers1

2

For anyone else who has this issue - the fix was to simply edit the index.html in src/index.html, then run the build process again. It's then copied to www/index.html

Phil
  • 371
  • 1
  • 4
  • 13