Scaling UpLesson 40Free preview
Vue Build
This lesson is part of Vue · All levels
Summary
Build is the process of converting Vue source code into a browser-ready production asset, typically involving module merging, minification, and file separation. Vite provides build commands that generate the best possible HTML, JavaScript, and CSS-containing dist folders. Configurations such as URL base and chunk sharing can be configured through configuration files.
Key points
- Build transforms the source code into an optimal production asset.
- Vite's built-in command is npm run build.
- The build results are usually in the dist folder.
- Vite used Rollup to merge modules on the production build.
- The division of the chunk and base path can be set at vite.config.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.