-
-
Notifications
You must be signed in to change notification settings - Fork 432
[email protected] generates 2 css files with identical content #1397
Comments
@Ashot-KR, what's your Rollup version with sapper v0.27.16? |
Could you try downgrade your rollup version to In sveltejs/sapper-template#233, prior to the template upgrade using Rollup v2, sapper generated multiple chunks of CSS instead of just one like in your screenshot for v0.27. It was a bug because of breaking changes in Rollup 2 (rollup/rollup#3655) which changed sapper's behaviour in outputting CSS. However I haven't confirmed whether between those chunks would have identical contents or not yet. |
@habibrosyad btw, with |
Yeah, that's what I mean, the behaviour changes in here sveltejs/sapper-template@b6a92e6, that's why I'm asking whether you could try to downgrade your Rollup to |
@habibrosyad i meant there is no files with content duplicates. |
same with |
I could confirm this also happen with Need to confirm whether this behaviour is intended or not. Maybe @benmccann or @Conduitry knows better in this area. |
No, that shouldn't happen. @ajbouh said he's currently working on reimplementing this part, so rather than debug the current version I'll probably wait to see what he comes up with |
Reverting #1306 seems to fix this, but that would presumably break other things. |
I think this issue was introduced by #471, which made |
Describe the bug
In
0.28.0
sapper generates filesmain.[hash].css
andclient.[hash].css
with identical content.To Reproduce
Create new sapper project from template
Start app

npm run dev
Open http://localhost:3000 in browser, open browser devtools on network/css
main.[hash].css
andclient.[hash].css
has identical content.This is css files generated with

[email protected]
and[email protected]
(UPD: added rollup version)Information about your Sapper Installation:
The text was updated successfully, but these errors were encountered: