Vue project configuration method and device, electronic equipment and storage medium
The embodiment of the invention discloses a Vue project configuration method and device, electronic equipment and a storage medium, and the method is applied to a Web front end, and comprises the steps: obtaining an environment file obtained by loading after a packaging command carrying a Vue projec...
Saved in:
Main Author | |
---|---|
Format | Patent |
Language | Chinese English |
Published |
30.08.2024
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The embodiment of the invention discloses a Vue project configuration method and device, electronic equipment and a storage medium, and the method is applied to a Web front end, and comprises the steps: obtaining an environment file obtained by loading after a packaging command carrying a Vue project execution environment identifier is operated; reading a Vue project execution environment variable in the environment file, and obtaining a configuration file in a corresponding environment; and replacing the corresponding environment configuration general file in the Vue project file with the obtained configuration file. The technical scheme provided by the embodiment of the invention can be suitable for a scene of Vue project multi-environment deployment, and can solve the problem that the Vue project configuration operation is time-consuming and inconvenient in the prior art.
本发明实施例公开一种Vue项目配置方法、装置、电子设备及存储介质,其中,所述方法应用于Web前端,包括:获取运行携带有Vue项目执行环境标识的打包命令后加载得到的环境文件;读取环境文件中的Vue项目执行环境变量,获取对应环境下的配置文件;将获取到的配置文件,替换Vue项目 |
---|---|
Bibliography: | Application Number: CN202410629312 |