Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated an empty chunk message when there is no js or css included in html #13963

Closed
7 tasks done
lubomirblazekcz opened this issue Jul 27, 2023 · 4 comments
Closed
7 tasks done

Comments

@lubomirblazekcz
Copy link
Contributor

Describe the bug

There is a message Generated an empty chunk upon vite build when html files have no included js or css files.

This can especially bloat build log if there are a lot of multipage html files. eg. files that have only inline styles, or don't use included js.

Reproduction

https://stackblitz.com/edit/vitejs-vite-b1ed5d

Steps to reproduce

run vite build

System Info

ystem:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.20.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.4.2 - /usr/local/bin/npm
    pnpm: 8.6.3 - /usr/local/bin/pnpm
  npmPackages:
    vite: ^4.4.5 => 4.4.7

Used Package Manager

npm

Logs

No response

Validations

@stackblitz
Copy link

stackblitz bot commented Jul 27, 2023

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@patak-dev
Copy link
Member

patak-dev commented Jul 27, 2023

@lubomirblazekcz
Copy link
Contributor Author

@patak-dev seems to be fixed now in v4.4.9 👍

@patak-dev
Copy link
Member

Thanks for testing this back @lubomirblazekcz!

@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants