DEV Community

Cover image for npm run generate nuxtjs project
Mohamed Hanini
Mohamed Hanini

Posted on

npm run generate nuxtjs project

Hi community i have a nuxtjs project with many dynamic pages and want to generate all of them for example /post/example must generate for me example.html with npm run generate but this generate juste pages in pages folder

Discussion (5)

Collapse
abdfnx profile image
abdfn

You should install serve package

npm i -g serve
Enter fullscreen mode Exit fullscreen mode

after install

when you run generate command it's well save it in dist folder

run this command

surve dist
Enter fullscreen mode Exit fullscreen mode
Collapse
medhanini profile image
Mohamed Hanini Author

This will generate all the project?

Collapse
abdfnx profile image
abdfn

Yes

Thread Thread
medhanini profile image
Mohamed Hanini Author

okey thank you so much

Thread Thread
abdfnx profile image
abdfn

you welcome