How i can add some custom env variables in my electron app? I want use them to store api keys and other things that I don't want to write directly into the code. I'm using vue and electron.
If I understand well I need to create a new .env file in the root of the vue electron project?
[https://www.electronjs.org/docs/api/environment-variables]
that's the documentation link for environment vars
Related
I've a NuxtJS application and I'm trying to share a websocket connection throught the open tabs. Researching for this, I have found a way using shared-workers but I dont found this at Nuxt / Nuxt PWA documentation. I only found way to create custom workers in Nuxt PWA module with workbox.
I've been solved this problem using a Worker-Loader in my project. With this, I can configure worker files, incluse type of worker (sharedworker in this case) and import like a javascript module inside my component file.
This helps me how to configure: Using webpack worker-loader with nuxt.js
I want put my Vue project in the Electron, so I find the method in the Internet. According to the given method on the Intenet, I make a demo to test it.
At frist, I create Vue project using vue create myProject, then I use vue add electron-builder to add Electron, then I choose the Electron version, then it prepare to install the additional dependencies. But the error is thereļ¼
Someone could help me? Thanks!
electron-vue: An Electron & Vue.js quick start boilerplate with vue-cli scaffolding.
maybe you can try it.
I have a legacy web application which I have introduced Vue into in a few places, via CDN. I have upgraded it from Vue 2 to Vue 3. There is a component used there which breaks with Vue 3, but there is a Vue 3 version of it. However, the author states this: "The component is packaged mainly for use with bundlers, if you require a browser build - post an issue." I do require a browser build. Is there some easy way I can do this for myself? I wasn't planning to use a bundler for this application, so I'm hoping I can use the existing modules to create a .js file I can use from the browser?
Hi I want to initiate Vue application from separate project and import Vue components to it by another project. When working on I got an issue between multiple Vue instances . To solve that I'm trying to create separate bundle for Vue and try to initiate application on separate project by it which uses to create components. How to create separate bundle for Vue which can be used from different projects?
Hi for reference any one. Inside webpackconfig under externals can define as Vue : ['Vue'].
I've Electron Project, but I can't use vuejs inside it...so how to use vuejs inside it? or I should install vue cli and install electron?
The easiest way that I have seen currently is to create your Vue site first, with vue-cli 3, and then a vue-cli-plugin- but not electron-vue, which is stale. Use vue-cli-plugin-electron-builder. Starting with this, you can then add all the Vue you want.