Comments (8)
Hi @alidcastano
Actually next export
is the equivalent of nuxt generate
, but I believe server-side
rendering is pretty useless in an Electron app, and by forcing the mode: spa
, it will allow to avoid opening a port in production by serving the dist/
folder :)
from electron-template.
[https://github.com//issues/19](Use registerStreamProtocol and nuxt.render)
git clone https://github.com/ddvjs/electron-test.git
cd electron-test
npm i
npm run dev
from electron-template.
I do not want to use nuxt generate, because it is very troublesome, I hope to use registerStreamProtocol and nuxt.render
from electron-template.
Can you simulate it like this?
from electron-template.
I want to use nuxt.render to render registerStreamProtocol
/ping @Atinux
from electron-template.
Is there a solution to this approach?
from electron-template.
Submitted a PR to serve /dist/electron for production hence no need to open port. #20
I know it is not using registerStreamProtocol, I don't have enough knowledge to figure it out, but this should be better than opening a port in production.
from electron-template.
I closed the pull request as I found out the paths to the images do not work in production, either in /assets/img
or /static/img
.
from electron-template.
Related Issues (20)
- do not open port in production,Use registerStreamProtocol and nuxt.render
- Use registerStreamProtocol and nuxt.render
- Electron Security Warning (Insecure Resources) HOT 2
- App just displays a white screen HOT 2
- I cant use remote HOT 1
- cannot compile scss HOT 1
- cannot compile scss in electron-template HOT 1
- Cannot GET / HOT 1
- Cannot GET / HOT 11
- Not Urgent: Cannot load the stats for nuxtjs on install HOT 1
- SASS loader issue HOT 2
- static assets in electron HOT 1
- Silent fail on built app HOT 1
- Using expressjs in this template HOT 1
- 404 error after nuxt build HOT 1
- add to existing proyect HOT 1
- 模板不通用 HOT 1
- Alternative template HOT 1
- app.asar containing .vue files
- Archive this template? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-template.