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
I'm also using the jekyll-node-module plugin and it appears that files copied by that plugin aren't compressed. Even though that plugin is executed first.
This plugin correctly generates the compressed files for everything except the files that are copied (e.g. /assets/webfonts). At least the svg and eot files in there should be compressed, but currently aren't. No such problem with the files that module places in /assets/js or /assets/css.
Also if I place another svg file manually in that location e.g. /assets/webfonts/test.svg the gzip files are created correctly, but only for that one specific file. The files that the module copied there are still ignored.
When using --verbose I can also see that the copying happens before jekyll-gzip is invoked.
jekyll-gzip (and jekyll-brotli) both use the Jekyll site post_write hook and use the site object and the method each_static_file to compress all the static files generated by Jekyll. The jekyll-node-module plugin seems to copy across the static files, but they aren't added to the site object at all, so this plugin doesn't know about them.
I imagine something similar could be done for jekyll-node-module. You might be able to do so within your own application, and I'd be happy to take pull requests to add the behaviour if it can be generalised.
I'm also using the jekyll-node-module plugin and it appears that files copied by that plugin aren't compressed. Even though that plugin is executed first.
This plugin correctly generates the compressed files for everything except the files that are copied (e.g.
/assets/webfonts
). At least the svg and eot files in there should be compressed, but currently aren't. No such problem with the files that module places in/assets/js
or/assets/css
.Also if I place another svg file manually in that location e.g.
/assets/webfonts/test.svg
the gzip files are created correctly, but only for that one specific file. The files that the module copied there are still ignored.When using
--verbose
I can also see that the copying happens before jekyll-gzip is invoked._config.yml:
The text was updated successfully, but these errors were encountered: