Home >Web Front-end >Vue.js >How to compile and package vue.js project

How to compile and package vue.js project

王林
王林Original
2020-11-23 13:48:415188browse

How to compile and package the vue.js project: 1. Execute the command [npm run build]; 2. Execute the command [npm install -g serve]; 3. Execute the command [serve dist].

How to compile and package vue.js project

The operating environment of this tutorial: Windows 10 system, Vue version 2.9.6. This method is suitable for all brands of computers.

(Learning video sharing: javascript video tutorial)

vue.js project compilation and packaging method:

1. Execute the command npm run build

2, execute the command npm install -g serve

3, execute the command serve dist

Related recommendations: vue.js tutorial

The above is the detailed content of How to compile and package vue.js project. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn