The vue project built with cli3 is known as a zero configuration file. In order to facilitate packaging (without manually changing different environments for packaging), what should we do when we need to package in different environments? Here I created three, which are my local; offline; online environment. The contents of the three files are as follows: VUE_APP_TITLE corresponds to the current file suffix, build corresponds to production NODE_ENV = 'production' VUE_APP_TITLE = 'alpha' ==================================================================== NODE_ENV = 'production' VUE_APP_TITLE = 'production' ==================================================================== NODE_ENV = 'production' VUE_APP_TITLE = 'online' 2.package.json configures the corresponding environment packaging name, as shown in the figure: 3.As shown in the figure 4. Intercept files on the interface, as shown in the figure: 5. After configuration, the three environments are packaged as follows: This is the end of this article about the steps of vue cli3 to implement environment-specific packaging. For more relevant vue cli3 environment-specific packaging content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Tutorial on installing MySQL 5.7.9 using RPM package under CentOS 7
>>: Win2008 Server Security Check Steps Guide (Daily Maintenance Instructions)
How to introduce svg icons in Vue Method 1 of int...
Overflow Hide It means hiding text or image infor...
1. Install mutt sudo apt-get install mutt 2. Inst...
Table of contents 1. Environmental Preparation 2....
During the development process, we often use the ...
If you want to exit bash, there are two options: ...
This article uses examples to explain the princip...
Table of contents 1. What are options? 2. What at...
"Page screenshot" is a requirement ofte...
This article shares the specific code of JavaScri...
01. Overview Absolute paths and relative paths ar...
1 Get the installation resource package mysql-8.0...
This article uses examples to illustrate the usag...
1. Enable remote access to the docker server Log ...
Using the Docker run command docker run -d -p 920...