2.3. Vue3 project packaging

发布时间 :2025-10-25 12:21:08 UTC      

Package the Vue project using the following command:

cnpm run build

Execute the above command, and the output is as follows:

Image0

When the execution is complete, a dist directory, which generally contains index.html files and static directory, static directory contains static files js, css and picture directory images (if there are anypictures).

Image1

If you double-click directly to open index.html the page may be blank in the browser, but you need to modify it to display it normally index.html the path of js and css files in the file.

For example, if we open dist/index.html the file sees that the css and js file paths are absolute:

<link href=/static/css/app.33da80d69744798940b135da93bc7b98.css rel=stylesheet>
<script type=text/javascript src=/static/js/app.717bb358ddc19e181140.js></script>
...

We modify the js and css file paths to relative paths:

<link href=static/css/app.33da80d69744798940b135da93bc7b98.css rel=stylesheet>
<script type=text/javascript src=static/js/app.717bb358ddc19e181140.js></script>
...

Double-click this directly. dist/index.html the file can be seen in the browser.

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.