Daniele Dolci
Daniele Dolci

Reputation: 884

Nuxt generate command create an empty html

My application works with "npm run dev" command, but when i try to build for production with "npm run generate" in .nuxt/dist folder i have index.html with this content:

<!DOCTYPE html>
<html {{ HTML_ATTRS }}>
  <head>
    {{ HEAD }}
  </head>
  <body {{ BODY_ATTRS }}>
    {{ APP }}
  </body>
</html>

i miss some configuration?

Upvotes: 1

Views: 674

Answers (1)

Nicolas Pennec
Nicolas Pennec

Reputation: 7631

The build result of nuxt generate is in the /dist folder, not in the .nuxt/dist folder.

Upvotes: 3

Related Questions