Supercharge Your Innovation With Domain-Expert AI Agents!

Method for packaging Vue project based on programming language and electronic device

A programming language and project technology, applied in the direction of version control, software maintenance/management, etc., can solve the problem of repeated packaging code, and achieve the effect of optimizing storage space, improving work efficiency, and link pressure

Inactive Publication Date: 2019-07-12
SHENZHEN DIANMAO TECH CO LTD
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a method for packaging Vue projects based on a programming language and electronic equipment, aiming to solve the problem of repeated packaging codes when Vue is packaged through webpack

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for packaging Vue project based on programming language and electronic device
  • Method for packaging Vue project based on programming language and electronic device
  • Method for packaging Vue project based on programming language and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The present invention provides a method for packaging Vue projects based on a programming language and electronic equipment. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0041] see figure 1 , a method for packaging a Vue project based on a programming language, which includes steps:

[0042] S1. Create a script file and an array, define the reference library information of the elements in the array, and add reference variables to the elements;

[0043] S2. Exporting the script file and the array together as a configuration module, and adding a configuration function to the configuration module;

[0044] S3, traversing the array in the configuration module through the configuration function, a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for packaging a Vue project based on a programming language and an electronic device, and the method comprises the steps: creating a script file and an array, definingreference library information of elements in the array, and adding reference variables for the elements; exporting the script file and the array together as a configuration module, and adding a configuration function into the configuration module; traversing the array in the configuration module through the configuration function, and judging whether the element has a reference variable or not; when the element has the reference variable, obtaining pointer information of the reference variable, adding a configuration file to the pointer information, and generating a third-party library corresponding to the element in the configuration file; and judging whether a third-party library corresponding to the pointer information exists or not, if yes, clearing an original packaged file, and packaging the third-party library to obtain a packaged file. Therefore, the packaged file without repeated packaging codes is obtained, and the size of the packaged file is greatly reduced.

Description

technical field [0001] The invention relates to the field of programming languages, in particular to a method for packaging a Vue project based on a programming language and an electronic device. Background technique [0002] Vue (Vue project) is a progressive framework for building user interfaces. Vue adopts a bottom-up incremental development design. Its core library only focuses on the view layer, which is easy to use. At the same time, Vue can drive single-file components and is supported by the Vue ecosystem. A complex single-page application developed by the library. To put it simply, in traditional web development, the projects built are based on the html structure, and then various special effects are added through jquery or js. It is necessary to select each element to execute commands. These contents may or may not be used in simple projects. It can perfectly cope with changing projects. Once the project changes or the project project is large, the original code ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/71
CPCG06F8/71
Inventor 孙悦李天驰
Owner SHENZHEN DIANMAO TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More