Working in windows, I\'m able to generate a static site from my nuxt project using
$ npx nuxt generate
I\'m interested in setting
use below config into nuxt.config.js under module.exports, So your generate folder will be my-dist instead of dist
module.exports = {
mode: 'spa',
generate: {
dir: 'my-dist'
},
...............
.............
}
and if you want to use custom folder to keep all js,css and assests under dist folder for spa generate then use below config into nuxt.config.js under build object
publicPath: 'public/'
example:
build: {
publicPath: 'public/',
.........
............
}