How to generate the build of a Vue.js app?

Sometimes, we want to generate the build of a Vue.js app.

In this article, we’ll look at how to generate the build of a Vue.js app.

How to generate the build of a Vue.js app?

To generate the build of a Vue.js app, we can run npm run build if our project is created with the Vue CLI.

Therefore, if we created our Vue project with

vue init webpack myproject

Then we can run

npm run build

to generate a build.

Then we can get the files and folders generated from the build from the /dist folder in the project folder.

Conclusion

To generate the build of a Vue.js app, we can run npm run build if our project is created with the Vue CLI.