Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

PostCSS takes a long time in watch mode #2

Open
montemartin opened this issue Jan 10, 2020 · 1 comment
Open

PostCSS takes a long time in watch mode #2

montemartin opened this issue Jan 10, 2020 · 1 comment

Comments

@montemartin
Copy link

First - thanks for putting together such a great build!

I've had some issues with CSS reloading taking much longer than expected. When I save a SCSS file the new CSS file is generated quickly, but it takes another 3-4 seconds for the styles to actually apply in the browser. As I'm sure you can guess this is a massive drain on productivity.

I've narrowed it down to PostCSS running on the entire CSS file on every save. I've worked on other projects that don't have this problem, so there must be a solution. I'll look into if I have time in the near future. I'm a novice with build systems so I wanted to post here to see if anyone else has suggestions.

@danfascia
Copy link
Owner

I concur it takes too long to rebuild, but that's because it is doing quite a lot in terms of the tailwind rebuilding process.

I'm about to do some refactoring in which I will look to address the build speed, probably also dropping lightserver in favour of 11ty's internal server

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants