CodeKit Reload is very slow

Codekit is so slow when reloading files. Why is this and what can I do against it?

I am using MAMP3 on Yosemite with Chrome 39. The update delay is 0 seconds. I just have a bunch of php files and even less. Nothing extraordinary. And it reloads the files with a delay of about 10 seconds.

LESS files compiled very quickly, but not reloading the page. Internet access is disabled.

What else could be the problem?

From time to time, the message Codekit connection is unstable appears. But everything is hosted locally. How can this be unstable?

+5
source share
2 answers

Good. I figured out some things that slow down coding significantly.

  • Error Nr. 1: Number of files

    • It seems like a huge role in how many files are added for each project. My cms live outside the webroot, but my less and css live inside the webroot. So I included the whole project, including cms. So I had no path conflicts (lazy). As a result, about 4,000 files appeared. This is too much to encode.

    • Solution: still drop the whole project, but exclude the cms folders in the codec (yes, I know RTFM)

enter image description here

  1. Error No. 2: user file extension
    • I started working with twig files (after php was finished), and the wonderful browser update stopped. Because Kodkit does not seem to know the twig. To save the browser reload, you need to add a branch to the Generig Page Extensions.

enter image description here

Here it is. Now everything works fine.

+2
source

Also remember to remove the vendor folder from the libraries associated with composer. It really helped.

0
source

Source: https://habr.com/ru/post/1208429/


All Articles