Hi,
I’d like to generate valid html output when in production… Actually there are 3 problems:
n-head-ssr
in the default app.html
app.html
: <script type="text/javascript" defer>window.__NUXT__=<%= serialize(context.nuxt, { isJSON: true }) %></script>
For the first point, this is a webpack configuration to add, but maybe having simple options to switch in nuxt.config.js
would be better? And with a default to not remove spaces? Actually, I couldn't find yet how to get this properly with the extend options.
The third point could be solved by using a custom Template, but once again, shouldn't an "out-of-the-box" code be valid in the first time?
Thanks for your help.
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c369">#c369</a>)</em></sub></div>