title: How to add static files to an Electron app
body: <p>How can I add JSON or TOML files in an Electron app for deployment? The following code works in development environment, but does not after packaging by <code>electron-packager</code>.</p>
  
  <pre><code>var presets = toml.parse(fs.readFileSync('presets.toml','utf8'));
  </code></pre>