https://github.com/ebspeter/nuxt-build-remove-style
Red background on body
The style from pages/index.vue has been removed.
<style>
body { background: red; }
</style>
This was introduced in 2.10.0 and still works in 2.9.2.
npm run dev and npm run generate works normally.
This shouldn't have worked in the first place. Vue should also emit a warning in dev mode:
Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as
Most helpful comment
Found the solution here: https://stackoverflow.com/a/57331310/6096659
To anyone running into this, just use component: