title: Electron cant find images when using with Ionic
body: <p>I am trying to use my codebase for an already built ionic project but when i run <code>electron .</code>, the electron window opens but isn't showing my images that were displayed in my ionic application. I cross checked the file paths and they are correct. Here are my <code>package.json</code>,<code>electron.js</code> and <code>index.html</code> files</p>
  
  <pre><code>    {
       "name": "thebuisnessapp",
       "version": "0.0.1",
       "author": "Ionic Framework",
       "homepage": "http://ionicframework.com/",
       "private": true,
       "scripts": {
       "start": "ionic-app-scripts serve",
  "clean": "ionic-app-scripts clean",
  "build": "ionic-app-scripts build",
  "lint": "ionic-app-scripts lint",
  "electron": "electron .",
  "electron dist": "electron .",
  "ebuild":"node_modules/.bin/build"
   },
    "config": {
    "ionic_copy": "./config/copy.config.js",
    "ionic_sass": "./config/sass.config.js",
    "ionic_bundler": "webpack",
    "ionic_webpack": "./config/webpack.config.js"
  },
  "main": "electron/electron.js",
  "dependencies": {
  "@angular/animations": "5.2.11",
  "@angular/common": "5.2.11",
  "@angular/compiler": "5.2.11",
  "@angular/compiler-cli": "5.2.11",
  "@angular/core": "5.2.11",
  "@angular/forms": "5.2.11",
  "@angular/http": "5.2.11",
  "@angular/platform-browser": "5.2.11",
  "@angular/platform-browser-dynamic": "5.2.11",
  "@firebase/webchannel-wrapper": "^0.2.11",
  "@ionic-native/core": "^4.17.0",
  "@ionic-native/email-composer": "^4.18.0",
  "@ionic-native/file": "^4.19.0",
  "@ionic-native/file-opener": "^4.19.0",
  "@ionic-native/in-app-browser": "^4.18.0",
  "@ionic-native/local-notifications": "^4.17.0",
  "@ionic-native/network": "^4.17.0",
  "@ionic-native/social-sharing": "^4.19.0",
  "@ionic-native/splash-screen": "~4.12.0",
  "@ionic-native/status-bar": "^4.12.2",
  "@ionic-native/stripe": "^4.17.0",
  "@ionic-native/unique-device-id": "^4.17.0",
  "@ionic/pro": "2.0.3",
  "@ionic/storage": "2.1.3",
  "angular": "^1.7.5",
  "angularfire2": "^5.1.0",
  "chart.js": "^2.7.2",
  "cordova-android": "7.0.0",
  "cordova-plugin-actionsheet": "^2.3.3",
  "cordova-plugin-badge": "^0.8.8",
  "cordova-plugin-device": "^2.0.2",
  "cordova-plugin-email-composer": "^0.8.15",
  "cordova-plugin-file": "^6.0.1",
  "cordova-plugin-file-opener2": "^2.1.4",
  "cordova-plugin-inappbrowser": "^3.0.0",
  "cordova-plugin-ionic-keyboard": "^2.1.3",
  "cordova-plugin-ionic-webview": "^3.0.0",
  "cordova-plugin-local-notification": "^0.9.0-beta.2",
  "cordova-plugin-local-notifications": "git+https://github.com/katzer/cordova-plugin-local-notifications.git#ios10",
  "cordova-plugin-network-information": "^2.0.1",
  "cordova-plugin-splashscreen": "^5.0.2",
  "cordova-plugin-statusbar": "^2.4.2",
  "cordova-plugin-stripe": "^1.5.3",
  "cordova-plugin-uniquedeviceid": "^1.3.2",
  "cordova-plugin-whitelist": "^1.3.3",
  "cordova-plugin-x-socialsharing": "^5.4.4",
  "cordova-sqlite-storage": "^2.4.0",
  "cron": "^1.4.1",
  "electron": "^4.0.2",
  "electron-builder": "^20.38.5",
  "es6-promise-plugin": "^4.2.2",
  "firebase": "^5.5.8",
  "font-awesome": "^4.7.0",
  "ionic-angular": "3.9.2",
  "ionic-select-searchable": "^2.10.0",
  "ionicons": "3.0.0",
  "moment": "^2.22.2",
  "node-schedule": "^1.3.0",
  "number-flip": "^1.0.28",
  "pdfmake": "^0.1.40",
  "promise-polyfill": "^8.1.0",
  "rxjs": "^6.3.3",
  "rxjs-compat": "^6.3.3",
  "sw-toolbox": "3.6.0",
  "zone.js": "0.8.26"
   },
  "devDependencies": {
  "@ionic/app-scripts": "3.2.0",
  "typescript": "~2.6.2"
    },
   "description": "An Ionic project",
    "cordova": {
      "plugins": {
    "cordova-sqlite-storage": {},
    "cordova-plugin-whitelist": {},
    "cordova-plugin-statusbar": {},
    "cordova-plugin-device": {},
    "cordova-plugin-splashscreen": {},
    "cordova-plugin-ionic-keyboard": {},
    "cordova-plugin-actionsheet": {},
    "cordova-plugin-stripe": {},
    "cordova-plugin-network-information": {},
    "cordova-plugin-uniquedeviceid": {},
    "cordova-plugin-email-composer": {},
    "cordova-plugin-inappbrowser": {},
    "cordova-plugin-local-notification": {},
    "cordova-plugin-file-opener2": {
      "ANDROID_SUPPORT_V4_VERSION": "27.+"
    },
    "cordova-plugin-file": {},
    "cordova-plugin-x-socialsharing": {
      "ANDROID_SUPPORT_V4_VERSION": "24.1.1+"
    },
    "cordova-plugin-ionic-webview": {
      "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
    }
  },
    "scripts": {
    "build": "ng build &amp;&amp; npm run copy:hosting &amp;&amp; npm run build:ssr &amp;&amp; npm run build:functions",
    "copy:hosting": "cp -r ./dist/YOUR_PROJECT_NAME/* ./public &amp;&amp; rm ./public/index.html",
    "build:functions": "npm run --prefix functions build"
  },
  "platforms": [
    "android"
  ],
  "build": {
    "appId": "com.lohanitech.ionic-electron-test",
    "electronVersion": "1.6.2",
    "asar": false,
    "files": [
      "www/**/*",
      "electron/*"
    ]
  }
  </code></pre>
  
  <p>}
  }</p>
  
  <p>My <code>electron.js</code></p>
  
  <pre><code>        'use strict';
    const electron = require('electron');
       // Module to control application life.
  const {
  app } = electron;
  // Module to create native browser window.
  const {
  BrowserWindow
   } = electron;
  
   let win;
  
   function createWindow() {
  // Create the browser window.
  win = new BrowserWindow({
      width: 1024,
      height: 600
  });
  
  var url = 'file://' + __dirname + '/../www/index.html';
  var Args = process.argv.slice(2);
  Args.forEach(function (val) {
      if (val === "test") {
          url = 'http://localhost:8100'
      }
  });
  
  // and load the index.html of the app.
  win.loadURL(url);
  
  // Open the DevTools.
  win.webContents.openDevTools();
  
  // Emitted when the window is closed.
  win.on('closed', () =&gt; {
      // Dereference the window object, usually you would store windows
      // in an array if your app supports multi windows, this is the time
      // when you should delete the corresponding element.
      win = null;
  });
  }
  
  // This method will be called when Electron has finished
   // initialization and is ready to create browser windows.
  // Some APIs can only be used after this event occurs.
  app.on('ready', createWindow);
  
  // Quit when all windows are closed.
  app.on('window-all-closed', () =&gt; {
  // On OS X it is common for applications and their menu bar
  // to stay active until the user quits explicitly with Cmd + Q
  if (process.platform !== 'darwin') {
      app.quit();
  }
  });
  
   app.on('activate', () =&gt; {
  // On OS X it's common to re-create a window in the app when the
  // dock icon is clicked and there are no other windows open.
  if (win === null) {
      createWindow();
  }
  });
  </code></pre>
  
  <p>I would really appreciate any help on how i could get my images to start displaying</p>