-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jekyll-assets not compatible with Jekyll 4.0 #613
Comments
I think the following section of the 3.x to 4.x upgrade documentation states what the issues is:
I don't know enough about how jekyll assets works, but I would guess line 186 of utils.rb needs to be modified:
|
Digging further, I see what happened. Upgrading to Jekyll 4 makes Bundler try to find the first version compatible. 1.0 is marked to be compatible with Jekyll < 5.0, so it gets installed. |
Manually setting the Gemfile to get all the cutting edge dependencies:
will still result in
Which doesn't happen using Jekyll 3.8.6 |
Finally got it working, this setup should be provisional but it works if you want to make the jump to 4.0.0:
Branch used comes from #620 |
@flipacholas I tried this, but there are issues with some assets. You can compare these two pages for example: What I see:
All these examples come from this include. I don't know if these are known issues, or syntax changes I should make in my templates, I'll try to find out. |
@nhoizey I also ran into a lot of problems with css (in my case with making autoprefixers work) and to be honest I started migrating to webpack to process sass and js some weeks ago, I don't regret it at all. Jekyll-assets is a great plugin, but I ended up doing a lot of monkey-patching with ruby (to include code from pending pull-requests) and I also don't know what are the future prospects about this project, so I just offloaded the critical bits. |
@flipacholas I wanted to migrate to Jekyll 4 to have a real project on which testing my own plugins, but I plan anyway to leave Jekyll for Eleventy, so it might not be worth losing time on this… 😢 I agree Jekyll-Assets is a great plugin I've been using for years, but Jekyll's future concerns me even more. |
Asside from these parts missing in the output, I get build times around 600 seconds instead of 80 seconds with Jekyll 3, and a flame graph shows |
It looks like it might be related to this sprockets issue: rails/sprockets#640 |
Any news on this? |
Do we need to add |
Looks like Sprockets has set export_concurrent to false by default: rails/sprockets#581 |
That's a little relieving! I'm gonna close this for now then since the specs are passing for both Sprockets 4, and Jekyll 4 on master. If this arises again please file a ticket! |
- rebuilding Gemfile.lock (i.e. delete it first and have it regen) - kramdown v2 is now standard https://jekyllrb.com/docs/upgrading/3-to-4/ - jekyll-assets needs an unpublished version envygeeks/jekyll-assets#613 (comment) - also upgrading jekyll-algolia in the same sweep - pulling in the new defaults in the bottom part of the Gemfile (windows, performance-booster)
Description
Making a new project that uses jekyll-assets and jekyll 3.8.6 works fine, but when upgrading
to Jekyll 4.0.0 assets does not appear to be called.
Steps
use the following shell script to setup test environment
Output
Running the above command will work fine:
but if you:
cd broke/blog
bundle update
bundle exec jekyll b
You will get:
Expected
The abc.js should have been built with no error like so:
The text was updated successfully, but these errors were encountered: