NekitCorp / chrome-extension-svelte-typescript-boilerplate

Boilerplate for Chrome Extension Svelte Typescript project
264 stars 53 forks source link

Lagg using tailwind template #32

Open alanxp opened 5 days ago

alanxp commented 5 days ago

When you use a clean clone of the typescript template, and try to change a component (example. Options.svelte) it takes like 20 seconds to do a change. Currently using Macbook pro M1 16gb ram. it shouldn't take that long.

Have to mention this only happens with the tailwind template, the others with regular css does not have this problem

NekitCorp commented 3 days ago

Hi! 🤔 I have the same configuration and on the tailwindcss branch my rebuild happens quickly.

Can you try it on a clean build and a clean branch (without any other changes)?

rm -rf dist node_modules
npm i
npm run dev

If the problem persists, can you try commenting out the line in the tailwind.config.js file:

safelist: process.env.NODE_ENV === "development" ? [{ pattern: /./ }] : [],