vue-cli-plugin-electron-builder | Easily Build Your Vuejs App For Desktop With Electron | Command Line Interface library
kandi X-RAY | vue-cli-plugin-electron-builder Summary
kandi X-RAY | vue-cli-plugin-electron-builder Summary
Easily Build Your Vue.js App For Desktop With Electron.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get externals from a plugin
- Create a new window
vue-cli-plugin-electron-builder Key Features
vue-cli-plugin-electron-builder Examples and Code Snippets
Community Discussions
Trending Discussions on vue-cli-plugin-electron-builder
QUESTION
I need help debugging Webpack's Compression Plugin.
SUMMARY OF PROBLEM
- Goal is to enable asset compression and reduce my app's bundle size. Using the Brotli algorithm as the default, and gzip as a fallback for unsupported browsers.
- I expected a content-encoding field within an asset's Response Headers. Instead, they're loaded without the field. I used the Chrome dev tools' network tab to confirm this. For context, see the following snippet:
- No errors show in my browser or IDE when running locally.
WHAT I TRIED
- Using different implementations for the compression plugin. See below list of approaches:
- (With Webpack Chain API)
ANSWER
Answered 2021-Sep-30 at 14:59It's not clear which server is serving up these assets. If it's Express, looking at the screenshot with the header X-Powered-By
, https://github.com/expressjs/compression/issues/71 shows that Brotli support hasn't been added to Express yet.
There might be a way to just specify the header for content-encoding
manually though.
QUESTION
I am working on a project with Vue. I run Vue Cli and I added the Typescript plugin. I have several vulnerabilities. When I run npm audit fix
it can't resolve the dependency conflict:
ANSWER
Answered 2021-Nov-01 at 04:56Your package.json
has a mix of dev dependencies with versions that start with ~
and ones that start with ^
. That's probably because some dev dependencies were installed with older versions of npm
that defaulted to ~
which is more conservative than ^
. As a first step, change the 8 ~
versions to ^
, remove node_modules
and (if it exists) package-lock.json
and run npm install
again. I tested this locally and it didn't reduce the number of vulnerabilities reported by npm audit
but it did reduce the number of outdated packages which is a step in the right direction.
Let's simplify things by only looking at the audit results for your production dependencies and ignoring (at least for the moment) issues in your dev dependencies. npm audit --only=prod
reports only 5 issues, all moderate. Running npm audit --only=prod --force fix
updates @capacitor/cli
from 2.x to 3.x. That's a breaking change so you'll want to test it, but if that works for you, congratulations because npm audit --only=prod
reports no vulnerabilities.
At this point, you could possibly choose not to worry much about the other issues reported by npm audit
. However if you wanted to fix them, here is the potentially tedious/arduous path I'd recommend:
- Do a manual audit of all of your dev dependencies to make sure you aren't including things you don't need. Maybe you have things that are installed that you aren't using. Uninstall them. Maybe you have things installed that are nice-to-have but you don't really need. Consider uninstalling them too.
- Run
npm outdated
to see what could be manually updated via a breaking change. Try doing those updates.
QUESTION
I am using vue-cli-electron-builder. So how I can quit the application from a button in vue. Thanks.
...ANSWER
Answered 2021-Sep-22 at 09:02Try that
QUESTION
It's my vue.config.js
:
ANSWER
Answered 2021-Aug-04 at 08:58I found the problem, need to use builderOptions
:
QUESTION
I tried to create a github action that build my electron app with vue and vue-cli-plugin-electron-builder,but I can't install Dependencies by npm
my folder tree like this:
...ANSWER
Answered 2021-Aug-01 at 11:14You are not checking out your code and directly running NPM CI
.
Below piece of code should do the job for you
QUESTION
I'm trying to include a VLC video playing in my Electron app, which is possible through WebChimera.js. This package is distributed a bit weirdly (to me at least), to use it you need to require wcjs-prebuilt, specify some settings in package.json and configure Webpack to allow importing .node files as explained in this Wiki page for WebChimera.js.
However I believe this Wiki page is outdated, as loaders isn't a valid key anymore in a Webpack config. I'm not very experienced using Webpack so most of this is new to me. Also note that this Wiki explanation used a fork of node-loader, although this fork seems to be merged to the actual node-loader now (?).
I now use this Webpack config:
...ANSWER
Answered 2021-May-15 at 16:41I'm able to get vue electron building with wcjs-prebuilt
using a vue.config.js
like this. You will also need to set the VLC_PLUGIN_PATH
correctly or video won't play.
QUESTION
When trying to get a message from ipcMain
to ipcRenderer
(without node integration and with contextIsolation
), it's received but as undefined
. Not only that, but if I were to reload the VueComponent
(regardless of what change I make to it), the number of responses gets doubled.
For example, the first time I start my application, I get 1x undefined
at a time every time I click the button. If I reload the component, I start getting 2x undefined
every time I click the button. I reload again and get 4x undefined
every time I click the button... and it keeps doubling. If I restart the application, it goes back to 1x.
SETUP
ElectronJS + VueJS + VuetifyJS has been set up as described here.
preload.js as per the official documentation.
...ANSWER
Answered 2021-May-14 at 13:25For solving the first problem (doubling of function calls) you have to remove window.ipcRenderer = ipcRenderer
. In contextIsolation mode the approach is to use contextBridge.exposeInMainWorld() only. Using both implementation definitely causes issues.
For the second problem, the callback to receive
in ipcRenderer is called with only ...args from main (no event passed to func). see:
QUESTION
I'm trying to create an Electron application using the Vue CLI package in npm, but in the process of using puppeteer, I get the following error message.
...ANSWER
Answered 2021-May-13 at 06:03Make sure you have contextIsolation
set to false
in your BrowserWindow
settings.
Like this:
QUESTION
I'm creating an Electron / Vue application, and I cannot get the Vue Devtools to load in the Electron app window. This is my first time using Electron with Vue, and I'm not sure if there's a dependency issue that I'm not aware of.
I came across this Github issue, but my versions of Electron and vue-cli-plugin-electron
are higher, and already include the updated code that is being discussed.
I also tried the following snippet (from here):
...ANSWER
Answered 2021-May-04 at 02:31Don't use timeouts, wait for the dom-ready
event instead. I imagine setting it up like this will get everything to work.
QUESTION
I am working with electron-vue js for building cross platform desktop app. I want to set custom icon when i make build file and want to add product name on app. But when i set custom icon, it work perfect in locally but when make it build then not work correctly. It give an error default Electron icon is used reason=application icon is not set.
Here is Background.js file
...ANSWER
Answered 2021-Apr-11 at 18:17When we work in electron vue js. we add new file vue.config.js and paste these line of code.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-cli-plugin-electron-builder
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page