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)
Table of contents 1 element offset series 1.1 Off...
Overview: I drew lessons from several timetable s...
Table of contents 1 Nginx Installation 2 Configur...
If you use docker search centos in Docker Use doc...
There are many ways to generate a global ID. Here...
Table of contents 1. Cancel duplicate requests 2....
Preface This article mainly introduces the releva...
Table of contents 1. Example 2. Create 100 soldie...
Table of contents 1. The origin of fork 2. Early ...
First download JDK. Here we use jdk-8u181-linux-x...
Table of contents background 1. Document Descript...
question The code has no prompt: Many non-front-e...
The Docker package is already included in the def...
It is very important to monitor the operating sta...
Table of contents 1. Digital Enumeration 2. Strin...