Closed
Description
Describe the bug
Hello everyone!
I'm building a personal blog and for for some reason the link tags containing css files are duplicated in production only. In dev mode everything looks fine. For this reason, every style is duplicated.
I've created a repo and added only @sveltejs/adapter-static and the issue remained.
Thanks in advance.
Reproduction
https://github.com/stefandevai/duplicated-css
- Build the package
- Serve the static files generated on the build directory
- Open the example in a browser (tested with firefox and chrome) and inspect the orange title
- The CSS rule
background: orange;
is shown twice
Logs
No response
System Info
System:
OS: macOS 10.15.7
CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Memory: 565.56 MB / 4.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 19.9.0 - ~/.nvm/versions/node/v19.9.0/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 9.6.3 - ~/.nvm/versions/node/v19.9.0/bin/npm
Browsers:
Chrome: 114.0.5735.198
Safari: 15.4
npmPackages:
@sveltejs/adapter-auto: ^2.0.0 => 2.1.0
@sveltejs/adapter-static: ^2.0.2 => 2.0.2
@sveltejs/kit: ^1.20.4 => 1.22.3
svelte: 4.0.5 => 4.0.5
vite: ^4.4.2 => 4.4.3
Severity
serious, but I can work around it
Additional Information
No response