Skip to content

Jirapo/electron-webpack-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

electron-webpack-boilerplate

A very simple react electron application workflow。

Inspired by Poling

Optimized by Tommy Troy Lin

Installation

npm i -r https://registry.taobao.org

or

npm i

Development

  1. npm run dev

start webpack for bundling main and renderer

  1. open another terminal, npm start

start electron app

Bundle & Production

npm run build

then use the following commands:

  • npm run pack bundle without installation package
  • npm run pack:mac bundle and create macOS (.dmg) package
  • npm run pack:win bundle and create window (.exe) package

Modification

add/remove vendor

modify vendors array in file webpack/vendor.prod.config.babel.js

About

use webpack2 to bundle react app in electron

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published