Here’s a quick recap of the commands we used in the video to create, build, and serve a Vue app:
Create a new project:
vue create my-app
Build and serve the generated app on your local machine:
cd my-app
npm run serve
Build the app for production:
npm run build
This bundles everything in the dist directory which is ready to be deployed on your favorite static file server!
To preview the production build locally using the serve NPM package:
serve -s dist
0 Comments