Skip to content

Commit

Permalink
Disable extractCSS
Browse files Browse the repository at this point in the history
  • Loading branch information
rwd committed Sep 29, 2021
1 parent eda39cc commit b750047
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,9 @@ export default {
** Build configuration
*/
build: {
// Extract CSS to files instead of inlining to keep HTML page size down.
// This results in more network requests in total to render the full page,
// but a smaller HTML document, and a smaller total size of all requests.
// Lighthouse performance ratings favour this by a few percentage points.
extractCSS: true,
// Do not enable extractCSS as it is unreliable.
// See: https://github.com/nuxt/nuxt.js/issues/4219
extractCSS: false,

extend(config, { isClient }) {
// Extend webpack config only for client bundle
Expand Down

0 comments on commit b750047

Please sign in to comment.