electron-userland / electron-userland/electron-webpack

electron-webpack does in fact impose or encourage a specific project structure

Open
#152 9 comments 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

> not impose or encourage any sort of project structure

https://webpack.electron.build/core-concepts

- the renderer js file needs to sit in a folder (default: 'renderer'), project root or just src/ does not work.
- the main electron js file needs to sit in a folder (default: 'main'), project root or just src/ does not work.
- webpack-dev-server only watches _project-root_/src and not anything else, instead of the normal webpack behaviour to follow imports / watch the whole project folder.

I used to have a `index.js` and `renderer.js` in my project root. Also in my project root were 2 submodules used by other react projects. All this has been moved to the speciefied locations in `/src` and now it all works with minimal config. The configuration options provided in the docs seem to be not advanced enough to work as expected (like putting in './' or something and having it work).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.