Comments (3)
you should check if dev mode:
if (process.env.NODE_ENV === 'development') { require('electron-reload')(__dirname) }
from aurelia-cli-electron-app.
I'd not actually had a chance to use the dist yet (it was PR'ed by a contributor).
I guess you could remove this line: https://github.com/MeirionHughes/aurelia-cli-electron-app/blob/master/index.js#L5
its only supposed to be there during development so it auto-reloads for you when you change source files.
from aurelia-cli-electron-app.
Thanx for your hint, commenting out the related require entry in index.js works but then the auto-reload function is disabled.
from aurelia-cli-electron-app.
Related Issues (9)
- Incorrect filesGlob mapping in tsconfig.json HOT 1
- Add Installer Builder HOT 2
- Refactor window event handling
- Awesome-aurelia? HOT 1
- TypeError: Path must be a string. Received undefined at assertPath (path.js:7:11) HOT 5
- 404 when trying to GET aurelia-cli-electron-app/source/main.js HOT 4
- Add Testing HOT 5
- Using nodejs core modules HOT 2
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 aurelia-cli-electron-app.