diff --git a/README.md b/README.md index 53bf278..1190841 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,9 @@ npm install npm start ``` +To run it as an ordinary website rather than electron app (might be useful on headless systems): +instead of `npm start`, execute `npm run start-no-electron`. + ## Testing Tests are run with the [Jest](https://jestjs.io/) testing framework. diff --git a/package.json b/package.json index cf4e5ff..062da8a 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,10 @@ "clean": "rimraf dist", "webpack": "webpack --config ./webpack.config.js", "webpack:watch": "webpack --config ./webpack.config.js --watch", + "webpack-no-electron": "webpack --config ./webpack.react.js", "prestart": "npm run clean", "start": "npm run webpack && concurrently --kill-others \"npm run webpack:watch\" \"electron ./dist/main.js\"", + "start-no-electron": "npm run clean && npm run webpack-no-electron && npx http-server ./dist", "test": "jest" }, "author": "",