current position:Home>Build an electron project based on Vue from scratch
Build an electron project based on Vue from scratch
2022-05-15 02:07:38【Wooden house x】
Build from scratch based on vue Of electron project
1. Demand background
- Recently, we are working for electron Prepare for new projects , This article will show you how to build from scratch vue Of electron Project steps .
2. Solution
- 1. take Vue introduce Electron The two schemes commonly used in the project are vue-cli-plugin-electron-builder and electron-vue. In terms of downloads , The download volume of the former is that of the latter 2-3 About times , And from the feedback of many developers, the former has less pit points than the latter , Another important reason is vue-cli-plugin-electron-builder The team is updated in a timely manner , and electron-vue Almost in a stop state , So this tutorial I choose is vue-cli-plugin-electron-builder plug-in unit .
- 2. The steps of creating are as follows :
// 1. Global installation vue-cli:
npm install -g @vue/cli
// 2. establish vue project ( Pay attention to the choice vue2 perhaps vue3 Fine , Safe choice vue2):
vue create my-electron
// 3. After creating the project, enter the project to install the plug-in ( Notice that it's not npm):
cd my-electron
vue add vue-cli-plugin-electron-builder
// 4. Run the project ( After waiting for a moment, a pop-up window will appear ):
npm run electron:serve
// 5. Packaging project (dist_electron Catalog ):
npm run electron:build
- 3. At this point, the project is created successfully , Later, it can be developed according to the specific business
copyright notice
author[Wooden house x],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/132/202205120527037368.html
The sidebar is recommended
- How to add a widget as a high overlay
- Wigig antenna 10101r is applicable to T460 T4 wireless module m10101r
- Gigabit plug-in base series w13110vr wireless Gigabit receiver
- Es8388 low power audio chip and wireless transceiver chip cc1110f32rhhr IC RF
- Useeffect, react hooks / exclusive DEPs rule dependency resolution problem?
- React hook, how to dynamically add attributes to objects and render them to the page in time?
- Help react native run problems? Run Android error
- Vue learning summary
- Python experience lesson Chapter 1 01print function
- Python experience lesson Chapter 1 02 data types
guess what you like
Python experience lesson Chapter 1 03 conditional judgment
Vue - event handling
Node. JS: NVM tool usage NVM common commands
Solution to mask in element UI pop-up window
Online HTTP request header response header to JSON tool
Hospitality rental 90 react routing basic learning objectives
Summary of 89 react principle of hospitality rental
Ajax explanation (II)
Ajax implements user login authentication
Educoder web programming foundation autumn 2021 - HTML5 document header
Random recommended
- Educoder web programming foundation autumn 2021 - HTML5 - text control class label
- Educoder web programming foundation autumn 2021 - HTML5 document header tags and attributes
- Educoder web programming foundation autumn 2021 - HTML5 - text control class label
- Educoder web programming foundation autumn 2021 - overview of web front end development
- Vue data broker
- HTML5 notes - new specifications and new elements
- Lunch break train & problem thinking: on multidimensional array statistics of the number of elements
- Children's Painting Tutorial | children's interesting art lesson "firecrackers say goodbye to the old year and fireworks greet the new year"
- LeetCode 713. Subarray with product less than k
- JavaScript programming training Day6
- Vue realizes two-level linkage
- Tengine uses brotli to turn on tls1 3 and optimize HTTPS access speed
- C + +: remove the specified element from the array
- C + +: main elements
- Learn about nginx and tomact
- IC workplace Theory -- feelings of senior brother of digital ic front-end design after 4 months of employment (Part I)
- Vue Chapter 3 scaffolding's most complete render function, props, mixin mixing, plug-ins, browser local storage, component customization events_ Binding, unbinding, global event bus, message subscription and publishing, nexttick, Vue transition and animat
- Vue Chapter 5 vuex creates and introduces the use of store, getters and four map methods
- ***************2、 JS + Vue js***************
- A detailed explanation of HTTP protocol + classic interview questions
- Vue Chapter 4 Ajax in Vue: cross domain problems and slot slots
- Online nginx does not support the bug record of error reporting in delete request
- Okhttp sets the public parameters and puts the JSON object into the @ body to request the configuration of the public parameters
- Fluent ignores authentication of HTTPS and WSS certificates
- Browser loading HTML page evokes the most complete strategy of APP in mobile phone
- HTTP status code 304 and Etag details
- Using angularjs for fuzzy dynamic search drop-down box content
- Seamless connection to Macao, Hengqin Island, which is beautiful beyond the sky, is on fire again
- JQuery framework
- Vue mouse down and move event
- A simple Vue answer demo, single choice and multiple choice
- Front end interview question: if the cell in the table is red, click it to turn into white; if it is white, click it to turn into red, and what is not clicked is white
- Vue packaging folding panel plus animation effect
- If the front-end does real-time data acquisition?
- Ant vue3 table sorted by time
- Vue local refresh iframe
- Vue instruction authority
- Vue iframe refresh remains on the original page
- Vue realizes Gaode map API mask, positioning and weather
- Comparison and implementation of bidirectional data binding between react and Vue