Skip to content

Size after building is bigger with components: true #237

@Henribou

Description

@Henribou

Describe the bug
If the option components in nuxt-config.js is set to False, I get the following result after nuxt build
image

But if I set the option to True, I get the following :
image

There is a little difference of size in entrypoint, but there are some huge differences in size in the other files. Is that what is expected ?

To Reproduce
Steps to reproduce the behavior:

"dependencies": {
    "nuxt": "2.15.8",
    "vue": "2.6.14",
  },
  "devDependencies": {
    ...
    "webpack": "^4.46.0"
  }
  1. Run nuxt build with components: false
  2. Run nuxt build with components: true
  3. Check the differences of size

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions