Nuxt.js: HTML generated with `nuxt generate` don't have <head> and closing </body>,</html> tags

Created on 28 Jul 2017  路  3Comments  路  Source: nuxt/nuxt.js

Hello,

running nuxt generate on a simple project appears to generate invalid HTML, with <title> and <meta> not within the <head> and missing closing </body> and </html> tags.

Most helpful comment

// nuxt.config.js
generate: {
    minify: {
      removeOptionalTags: false,
    },
  },

All 3 comments

Hi. This is known and HTML is valid! Minifier does this to save more bytes :)

// nuxt.config.js
generate: {
    minify: {
      removeOptionalTags: false,
    },
  },

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jaredreich picture jaredreich  路  3Comments

mikekidder picture mikekidder  路  3Comments

uptownhr picture uptownhr  路  3Comments

mattdharmon picture mattdharmon  路  3Comments

vadimsg picture vadimsg  路  3Comments