I've been creating an electron app template using the command
npx create-electron-app myapp --template=webpack
This will create a folder with the files / directories:
forge.config.js
node_modules/
package.json
src/
webpack.main.config.js
webpack.renderer.config.js
webpack.rules.js
yarn.lock
After running the app using npm start
, it will start the app using the webpack-dev-server. But in the mode, it will load the files via http protocol. Then it's not allowed to load audio files from the local file system.
I need to start the app without using the http server. How can I disable the dev server, and just run webpack? I can reload the files using the F5 key, too.