Ionic cordova build removes /www directory and implicitly my .db file

Hello Miliziano,

My solution(and it works just fine) was:

  1. have your .db file in src/assets
  2. put this rule in your angular.json file:
    {
    “glob”: “**/*.db”,
    “input”: “src/assets”,
    “output”: “./”
    }
    under projects/app/architect/build/options/assets.
    this will copy at buildtime all your .db files from src/assets to /www, where the plugin needs .db file to be.

let me know if this helps you.