electron-vue-ex

The $electron global function plugin for electron-vue.(Fix 'fs.existsSync is not a function' problem.)

Usage no npm install needed!

<script type="module">
  import electronVueEx from 'https://cdn.skypack.dev/electron-vue-ex';
</script>

README

electron-vue-ex

The $electron global function plugin for electron-vue.

Install

Install using NPM

npm i electron-vue-ex --save

Install using CNPM

cnpm i electron-vue-ex --save

Entry main.js

import Vue from 'vue'
import ElectronVueEx from 'electron-vue-ex'

Vue.use(ElectronVueEx)

Using

Now you can use this.$electron directly.

this.$electron.YourFunciton...;

Such as:

this.$electron.shell.openExternal('https://github.com/')

Fix

2019/05/30 Fix 'fs.existsSync is not a function' problem.