npm run build
When doing so, a production build of your project is placed within a new dist directory in a file named build.js. What you will want to do, is to simply copy that file along with the index.html file to a web server, and you should be good to go.
And that’s how easy it is to make a production build of a Vue.js application.
Learn Vue.js today!
Take an online course and become an Vue.js champion!
Here is what you will learn:
- How to build advanced Vue.js applications (including SPA)
- How Vue.js works under the hood
- Communicating with services through HTTP
- Managing state of large applications with Vuex
- ... and much more!