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

Duplicate css bundles (different name) in build assets #10684

Closed
skiv71 opened this issue Sep 5, 2023 · 1 comment
Closed

Duplicate css bundles (different name) in build assets #10684

skiv71 opened this issue Sep 5, 2023 · 1 comment

Comments

@skiv71
Copy link

skiv71 commented Sep 5, 2023

Describe the bug

Basic sveltekit project, with config for an SPA and a +layout.svelte file for common css dependancy across different routes.

image

However, when I look at the build artifacts, I see the same css in 2 different files (which are quite large, due to it being bootstrap.css).

image

image

Reproduction

1/. create a sveltekit app

2/. create a +layout.js with...

image

3/. create another route with a +page.svelte (and some content)

4/. create a +layout.svelte in src/routes with content: -

image

Logs

No response

System Info

System:
    OS: Linux 5.15 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-1260P
    Memory: 5.13 GB / 14.00 GB
    Container: Yes
    Shell: 5.1.4 - /bin/bash
  Binaries:
    Node: 18.17.1 - ~/.config/nvm/versions/node/v18.17.1/bin/node
    Yarn: 1.22.19 - ~/.config/nvm/versions/node/v18.17.1/bin/yarn
    npm: 10.0.0 - ~/.config/nvm/versions/node/v18.17.1/bin/npm
  npmPackages:
    @sveltejs/adapter-auto: ^2.0.0 => 2.1.0 
    @sveltejs/adapter-static: ^2.0.3 => 2.0.3 
    @sveltejs/kit: ^1.20.4 => 1.24.0 
    svelte: ^4.0.5 => 4.2.0 
    vite: ^4.4.2 => 4.4.9

Severity

annoyance

Additional Information

total 464
-rw-r--r-- 1 skivy71 skivy71 233455 Sep 5 12:07 0.6fdf698b.css
-rw-r--r-- 1 skivy71 skivy71 577 Sep 5 12:07 3.d1a190f4.css
-rw-r--r-- 1 skivy71 skivy71 233308 Sep 5 12:07 _layout.7f0430da.css
-rw-r--r-- 1 skivy71 skivy71 577 Sep 5 12:07 _page.d1a190f4.css

Can't be good for distributing an SPA?

@eltigerchino
Copy link
Member

closed as duplicate of #9161

@eltigerchino eltigerchino closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants