electron-userland / electron-userland/electron-webpack

[HELP ASKED] Web build

Open
#202 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

Hello,

As a noob, I come here ask your help how to define a web compilation of the electron-webpack.

I know some of you will answer that Electron is only for desktop version. However I like the way we can provide one application one multiple platform, and for the web too, to include the most possible of users.

I come from [ElectronVue](https://github.com/SimulatedGREG/electron-vue) for some new projects. And I prefer the way your boilerplate work with the use of a separated core module which is extendable. And that let me able to update some dependencies as VueJS version for example, without need you to update your core code to follow dependencies versions. ElectronVue was recently stuck with no updates from months. And some of users needed to update some versions about Vue, Electron, etc... and was stuck by waiting ElectronVue to be updated with updated dependencies.

So, I would like to achieve a web build like ElectronVue with a npm script like :
`"web": "yarn compile --target=web` (example)

I check deeply electron-webpack's sources, but I do not understand where is `electron-webpack`'s command's entry point... I read [modifying webpack configuration](https://webpack.electron.build/modifying-webpack-configurations) and [Extending as a library](https://webpack.electron.build/extending-as-a-library)

But I do not know how to add a new process `webpack.web.config.js` and its contents. I personnaly use VueJS so I do not want to copy some process you already take care of. But I don't know what configuration need to be keeped or not for a web export.

I don't know if Im clear, sorry for my english....

Thank you for your help.

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.