0
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

posted at

updated at

エンジニアスタンプラリー~フロントエンド編#15

企画主旨

Frontend Developer Roadmapをひたすら巡回する企画
詳しくはこちら

今回の実施内容

デスクトップアプリ

Desktop Applications

Electron

ようこそ!Electron入門を参考にさせていただいた。
main.jsの参照先として、いままでReactをビルドしたファイル(v12)を指定する。

main.js
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;

let mainWindow = null;
app.on('ready', () => {
  mainWindow = new BrowserWindow({width: 1280, height: 720});
  mainWindow.loadURL('file://' + __dirname + '/dist/index.html');

  mainWindow.on('closed', function() {
    mainWindow = null;
  });
});

成果物

意外と簡単!!
https://github.com/tonchan1216/WDR-frontend/tree/v15

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
Sign upLogin
0
Help us understand the problem. What are the problem?