Skip to content

After packaging, the local search index js file exceeds 500kb. #3873

Open
@you-hengh

Description

@you-hengh

Describe the bug

After using the packaging command, the prompt

Some chunks are larger than 500 kB after minification

I checked the generated file and found that the @localSearchIndexroot.DwawiV-k.js file was too large, more than 800 kb.

Reproduction

Executing the build command will result in chunks exceeding 500kb

Expected behavior

How to keep chunks from exceeding 500kb or solve the source problem. The index file seems to be too large.

I will provide an index file produced by me in the attachment.

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 13th Gen Intel(R) CoreT i7-13800H
    Memory: 17.23 GB / 31.74 GB
  Binaries:
    Node: 20.11.1 - ~\AppData\Local\pnpm\node.EXE
    npm: 10.2.4 - ~\AppData\Local\pnpm\npm.CMD
    pnpm: 8.15.4 - ~\AppData\Local\pnpm\pnpm.EXE
  Browsers:
    Edge: Chromium (122.0.2365.52)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    vitepress: ^1.1.3 => 1.1.3

Additional context

Packaging over 500kb

@localSearchIndexroot.DwawiV-k.zip

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions