A bare minimum project structure to get started developing with
electron-webpack.
Thanks to the power of electron-webpack this template comes packed with...
- Use of
webpack-dev-serverfor development - HMR for both
rendererandmainprocesses - Use of
babel-preset-envthat is automatically configured based on yourelectronversion - Use of
electron-builderto package and build a distributable electron application
Make sure to check out electron-webpack's documentation for more details.
Simply clone down this repository, install dependencies, and get started on your application.
mkdir new-electron-webpack-project && cd new-electron-webpack-project curl -fsSL https://github.com/electron-userland/electron-webpack-quick-start/archive/master.tar.gz | tar -xz --strip-components 1
git clone https://github.com/electron-userland/electron-webpack-quick-start.git cd electron-webpack-quick-start rm -rf .git
npm
### Development Scripts
```bash
# run application in development mode
npm dev
# compile source code and create webpack output
npm compile
# `npm compile` & create build with electron-builder
npm dist
# `npm compile` & create unpacked build with electron-builder
npm dist:dir