Building for Production
Once you are satisfied with your website, it’s time to build it for production. In your terminal, run the following command:
npm run dev
This command generates optimized static files for your website in the dist/
directory.
Run static page in dist/
on locally
Install ‘http-server’, run the following command:
npm install -d http-server
After, run the following command:
http-server ./dist