title: Error when using vue js inside electron app
body: <p>I'm trying to use vue.js inside electron app but getting the following error:</p>
  
  <blockquote>
    <p>Uncaught Exception: ReferenceError: document is not defined
        at query (/Users/LM/Documents/mongoui/node_modules/vue/dist/vue.common.js:1070:10)
        at Vue._initProps (/Users/LM/Documents/mongoui/node_modules/vue/dist/vue.common.js:7254:23)
        at Vue._initState (/Users/LM/Documents/mongoui/node_modules/vue/dist/vue.common.js:7235:10)
        at Vue._init (/Users/LM/Documents/mongoui/node_modules/vue/dist/vue.common.js:2394:10)
        at new Vue (/Users/LM/Documents/mongoui/node_modules/vue/dist/vue.common.js:9000:8)
        at Object. (/Users/LM/Documents/mongoui/main.js:11:1)
        at Module._compile (module.js:425:26)
        at Object.Module._extensions..js (module.js:432:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:313:12)</p>
  </blockquote>
  
  <p>This is how I load vue.js inside <code>main.js</code>:</p>
  
  <pre><code>var Vue = require('vue');
  
  new Vue({
      el: "#app",
      data: {
          collections: [
              {"name": "test 1"},
              {"name": "test 2"},
              {"name": "test 3"}
          ]
      }
  });
  </code></pre>