m0jimo / quasar-faq Goto Github PK
View Code? Open in Web Editor NEWList of questions which are asked more often then others.
List of questions which are asked more often then others.
Here are a few questions I've seen multiple times or asked for myself in discord, along with how I solved it. Not sure if they fit in here or not. As I suck at wording I'm just gonna leave them here in case someone wants to make a proper Q&A out of them. ๐
express
instance / webpack-dev-server
for my quasar.config.js
, rather than quasar creating one for me?I wanted to bundle my server and client repo, and let the server serve the client code too. Specially in development mode, same origin and all that.
I ended up using http-proxy-middleware
. I proxied all /frontend/**
requests to the webpack server, and kept handling everything else on my existing instance.
I also wanted to debug the main process (my app extension index file) as I was making changes to the quasar/webpack config, which isn't being watched? What I ended up doing was setting a flag to exit the node process once my extension runner was done, skipping the whole front-end build and just quit early (
process.exit()
). Something likenodemon
could be added to the mix for hot-reloading / re-start.
You can init server-side packages (
expressjs
,feathersjs
, etc) in/src-electron/main-process
when using electron, just be careful and make sure to protect it!
This is how I solved my hot reloading problem. I avoid importing my server (
feathersjs
) withrequire
orimport
as quasar will then watch the file and shut down electron if any changes are detected. Instead I watch the file myself withchokidar
, I import the module with__non_webpack_require__
, upon changes I walk through the cache and delete the stuff related to my module (__non_webpack_require__.cache
) and then re-require it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.