LoginSignup
1
0

More than 3 years have passed since last update.

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

Last updated at Posted at 2019-10-30

企画主旨

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

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0