skeleton: [v2 rc] LightSwitch breaks(visually) after `pnpm build & preview`

Current Behavior

LightSwitch component visually breaks after npm build, although it shows correctly in npm dev

  • broken in built(preview) mode: image

  • fine in dev mode: image

Expected Behavior

The component should look just the same as dev mode

Steps To Reproduce

  1. create project with npm create svelte@rc my-skeleton-app
  2. Select, AppShell starter, Skeleton(theme), Tailwind forms & typography, TypeScript, none
  3. Add LightSwitch to header-trail slot of src/routes/+layout.svelte
  4. npm run build & npm run preview
  5. npm run dev looks fine.

Link to Reproduction / Stackblitz

No response

More Information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (10 by maintainers)

Most upvoted comments

the issue above was cache issue have nothing to do with skeleton 😃

@AdrianGonz97 Updating vite-plugin-tailwind-purgecss fixed the issue! thanks!

@endigo9740 I’m using adapter-node(v1.3.1) 😃

Please feel free to close the issue

@johnwook I’ve pushed an update to vite-plugin-tailwind-purgecss to fix this issue. If you don’t mind upgrading it to version 0.1.3 and letting me know if that’s working now, that’d be great!