Help us understand the problem. What is going on with this article?

Vue Cli 3 plugin for Electronの導入

More than 1 year has passed since last update.

前置き

ワンクリックでvueを実行したいので、Electronを導入してみました。
ここでは、Vue Cli 3 plugin for Electronを使います。
また、Mac上で構築しています。

導入方法

ターミナルを開き、Vue CLI 3で作成したプロジェクトフォルダに入ります。
(プロジェクト作成方法については[Vue CLI 3でHello-Worldする]を参照してください)

「hello-world」プロジェクト内でelectron-builderを導入します。

$ vue add electron-builder

アプリをビルドします。

$ yarn electron:build

dist_electron/macにelectronの実行アプリケーションが作成されていますので、ワンクリックで起動できるようになります。

スクリーンショット 2018-12-23 22.09.51.png

参考

Vue Cli 3 plugin for Electron
https://github.com/nklayman/vue-cli-plugin-electron-builder

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした