I am currently switching from Webpack + Vue CLI to the Quasar CLI in order to full take advantage of Quasar v2.0’s seamless Vue 3.0 integration. My application is Electron based and uses Electron Builder to package.
In addition to the Vue frontend, which Webpack builds with a target of electron-renderer, I also have a number of background threads that Webpack builds with a target of “node” that are run using fork from the main process.
Once I switch to Quasar CLI, is there a known way to use the quasar.conf file to build for multiple targets in this way? That is, have a single build command that builds both my Quasar frontend as well as my background threads using slightly different Webpack settings for each.
If not, I will need a hook from Quasar to fire up an external version of Webpack to pack my background threads. This will need to fire after Quasar has built the SPA but before Electron Builder starts, and wait for it to return before starting Electron Builder. Not sure if the beforeBuild hook fits the bill here.
Has anyone successfully created a build setup like this, and do you have any tips for a successful switchover?