Mohamed Hanini Posted on Jan 18, 2021 npm run generate nuxtjs project #node #vue #nuxjs #generatepages 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 Top comments (5) Subscribe Submit Preview Dismiss Collapse Expand abdfn abdfn abdfn Follow someone likes CLI/TUI apps, automation, server-sides, and backend. Location World Joined Oct 23, 2020 • Jan 18 '21 Dropdown menu Copy link Hide 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 Expand Mohamed Hanini Mohamed Hanini Mohamed Hanini Follow Location Essaouira morocco Work fullstack javascript developer at work from home Joined Mar 1, 2020 • Jan 18 '21 Dropdown menu Copy link Hide This will generate all the project? Collapse Expand abdfn abdfn abdfn Follow someone likes CLI/TUI apps, automation, server-sides, and backend. Location World Joined Oct 23, 2020 • Jan 18 '21 Dropdown menu Copy link Hide Yes Mohamed Hanini Mohamed Hanini Mohamed Hanini Follow Location Essaouira morocco Work fullstack javascript developer at work from home Joined Mar 1, 2020 • Jan 18 '21 Dropdown menu Copy link Hide okey thank you so much abdfn abdfn abdfn Follow someone likes CLI/TUI apps, automation, server-sides, and backend. Location World Joined Oct 23, 2020 • Jan 18 '21 Dropdown menu Copy link Hide you welcome Code of Conduct • Report abuse
Top comments (5)
You should install serve package
after install
when you run generate command it's well save it in
distfolderrun this command
This will generate all the project?
Yes
okey thank you so much
you welcome