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:
-
fine in dev mode:
Expected Behavior
The component should look just the same as dev mode
Steps To Reproduce
- create project with
npm create svelte@rc my-skeleton-app - Select,
AppShell starter,Skeleton(theme),Tailwind forms & typography,TypeScript,none - Add
LightSwitchto header-trail slot ofsrc/routes/+layout.svelte npm run build&npm run previewnpm run devlooks 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)
the issue above was cache issue have nothing to do with skeleton 😃
@AdrianGonz97 Updating
vite-plugin-tailwind-purgecssfixed 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-purgecssto fix this issue. If you don’t mind upgrading it to version0.1.3and letting me know if that’s working now, that’d be great!