Open antoniom opened 6 years ago
I think that the problem is related to the watch excluded folders because this plugins is constantly creating and deleting the same folder .asset_pipeline into the root directory.
I'm not an expert but I think that "create/delete" events are detected by the watch job and produce the loop in this case.
I solve this behavior doing this change in my _config.yml asset_pipeline: staging_path: '_assets/pipeline'
Greetings :)
Hmm -- I'm having this same issue but the fix doesn't seem to work here, instead I get:
Regenerating: 1 file(s) changed at 2020-03-15 16:13:06
_assets/.asset_pipeline/assets/global-1e0a56903cab4cb35e3fa85b5435530c.css
Any other ideas?
@jmsalazar84 didn't fix it for me also, as it seems (at least for me) the watcher does not care at all that the staging_folder is created in an excluded folder, thus still ends up in a regeneration loop.
Setting staging_folder
to a folder outside the project directory finally worked for me, for instance:
asset_pipeline:
staging_path: '../.asset-pipeline'
or
asset_pipeline:
staging_path: '/tmp/.asset-pipeline'
both work fine. The latter of course will only work on a *nix-like system.
You might want to override this in your CI pipeline _config.yml
where you only want to build once anyway and different permissions may prevent the asset pipeline from being executed otherwise.
When running
jekyll serve --watch
from my machine, jekyll-asset-pipeline scans for any css_asset_tag which is then bundled/minified/processed accordingly to the specified configuration.When running the same command over the jekyll docker container it enters an endless loop regenerating the same css/js files To reproduce the problem I have uploaded a default jekyll project, with jekyll-asset-pipeline as an extra dependency.
Steps to reproduce
docker-compose up
_assets\css\custom.css
and add/edit/delete anythingYou will see an endless loop of the following messages:
Is there a bug, or misconfiguration which causes jekyll to regenerate again and again the same assets?