You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a personal support request that should be posted on the Roots Discourse community
Describe the issue
I have encountered a persistent issue during my development workflow using yarn bud dev. The problem revolves around the continuous growth of the public folder with hot-update files, leading to increased disk usage and potential performance degradation. Additionally, with each code change particularly when adding Tailwind CSS classes, the browser becomes noticeably slower, but opening the URL in a new tab temporarily resolves the issue. It appears that there may be some form of memory accumulation or resource leakage during the hot-reloading process.
Expected Behavior
The public folder should not accumulate excessive hot-update files during development.
The browser should not experience performance degradation with each update during hot-reloading.
Actual Behavior
Continuous growth of the public folder with hot-update files, leading to increased disk usage and potential performance degradation
Steps To Reproduce
Run yarn bud dev in your development environment.
Observe the continuous growth of hot-update files in the public folder.
Notice the browser becoming slower after each update, but resolving the issue temporarily by opening the URL in a new tab.
version
6.15.1
Logs
No response
Configuration
Here is the relevant configuration from my package.json file:
"devDependencies": {
"@roots/bud": "6.15.1",
"@roots/bud-eslint": "6.15.1",
"@roots/bud-prettier": "6.15.1",
"@roots/bud-sass": "6.15.1",
"@roots/bud-stylelint": "6.15.1",
"@roots/bud-tailwindcss": "6.15.1",
"@roots/eslint-config": "6.15.1",
"@roots/sage": "6.15.1",
"stylelint-config-property-sort-order-smacss": "^9.1.0"
}
And here is an excerpt from my Bud configuration file (bud.config.js):
The number of files is not a performance bottleneck and not a concern.
It is possible there is a memory leak somewhere. If so, the problem would be in @roots/bud-client, as opening a new tab is resetting the client connection but not the server/middleware.
Just as an example of the behavior I observe and expect in a healthy app:
These changes were all made to css source files. You can see the time to render in the browser is variable but all more or less instantaneous. It doesn't seem to go up as additional changes accumulate.
And yes, the dist directory is absolutely packed with module updates:
I think what might be most helpful at this point is if you can reproduce your problem in a github repository or a codesandbox instance. I'm beginning to suspect that what you're experiencing might have more to do with your app code than the @roots/bud-client library.
Agreement
Describe the issue
I have encountered a persistent issue during my development workflow using
yarn bud dev
. The problem revolves around the continuous growth of the public folder with hot-update files, leading to increased disk usage and potential performance degradation. Additionally, with each code change particularly when adding Tailwind CSS classes, the browser becomes noticeably slower, but opening the URL in a new tab temporarily resolves the issue. It appears that there may be some form of memory accumulation or resource leakage during the hot-reloading process.Expected Behavior
Actual Behavior
Continuous growth of the public folder with hot-update files, leading to increased disk usage and potential performance degradation
Steps To Reproduce
version
6.15.1
Logs
No response
Configuration
And here is an excerpt from my Bud configuration file (bud.config.js):
The text was updated successfully, but these errors were encountered: