1.10.0 • Published 5 years ago

electron-start v1.10.0

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

electron-start

When you just want to start a js app.

Usage

npx electron-start

This will open an electron window displaying index.html in your current directory.

And hey, if your html file has a <script> tag that loads a javascript module, you can do all the fancy stuff like require(...) without needing webpack / browserify!

Note: If you use npx, no installation step is needed! Of course you can always npm install -g electron-start if you prefer.

Advanced Usage

You can also load a config file to set width / height of the browser window. Make a file like this:

// config.js

module.exports = {
  width: 400,
  height: 300
}

And run npx electron-start -c config.js

Show devtools by default

Set the --dev flag to automatically open devtools. Eg:

npx electron-start --dev

React devtools extension

Set the --react flag to enable the React devtools extension. Eg:

npx electron-start --dev --react

License

MIT

1.10.0

5 years ago

1.9.0

6 years ago

1.8.1

6 years ago

1.8.0

6 years ago

1.7.0

6 years ago

1.6.0

6 years ago

1.5.3

6 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

7 years ago

1.0.0

7 years ago