Electron-vue: [Question] How to build a web version

Created on 12 Jan 2017  ·  4Comments  ·  Source: SimulatedGREG/electron-vue

First of all, thank you very much for this boilerplate. It's truly awesome! Amazing work. It does indeed make people happy 👍

I was wondering if it is possible to build a version for the web (aside from the versions for the different SOs). I've looked into the dist folder and run a quick live server on the index.html file, but the browser console throws this error Uncaught ReferenceError: require is not defined.

In case this boilerplate is not ready to build a version for the web, what would be the correct approach to maintain a project for Mac, Windows and Web using the same codebase?

Thanks in advance.

PS. I've managed to build the initial demo app in all SOs from a Mac OS Sierra. Woohoo!

question

Most helpful comment

@gazpachu

Take a look at this issue. @nicklaw5 was able to get this working with a little direction from me. I might consider adding this as an official feature.

All 4 comments

@gazpachu

Take a look at this issue. @nicklaw5 was able to get this working with a little direction from me. I might consider adding this as an official feature.

+1 for adding it as an official feature. It's really quite easy to do and adds a load of benefits for those looking to build for both the web and native desktop.

Agree. That will match the features other similar boilerplates already offer. @nicklaw5 nice profile pic :)

Going to close this for now. Feel free to comment any questions.

Was this page helpful?
0 / 5 - 0 ratings