You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The size of dist/assets/index-legacy.19f6a2d2.js minus the size of dist/assets/index.0af28c7f.js is exactly the size of dist/assets/index.b97d446c.css.
System Info
Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:
[ x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[ x] Provide a description in this issue that describes the bug.
[ x] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
@sapphi-red helped tracked this one down (thanks!), and it looks like a duplicate of #2062. There's a comment mentioning that it's intentional, but can be improved: #2062 (comment)
Describe the bug
Even if the CSS is split into separate files, it will still be injected into JS, using @vitejs/plugin-legacy.
Reproduction
Run the following command:
output:
The size of dist/assets/index-legacy.19f6a2d2.js minus the size of dist/assets/index.0af28c7f.js is exactly the size of dist/assets/index.b97d446c.css.
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: npm
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: