philnash / jekyll-gzip Goto Github PK
View Code? Open in Web Editor NEWGenerate gzipped assets and files for your Jekyll site at build time
Home Page: https://rubygems.org/gems/jekyll-gzip
License: MIT License
Generate gzipped assets and files for your Jekyll site at build time
Home Page: https://rubygems.org/gems/jekyll-gzip
License: MIT License
Can we remove .gz from filename, so that it can be used when content hosted on AWS s3.
Thank you.
When working through Usage I noticed that the following command does not work:
PS C:\Users\RickvanDam\source\repos\Barsonax\Barsonax.github.io> JEKYLL_ENV=production bundle exec jekyll build
JEKYLL_ENV=production : The term 'JEKYLL_ENV=production' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.
At line:1 char:1
+ JEKYLL_ENV=production bundle exec jekyll build
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (JEKYLL_ENV=production:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Iam running this on windows.
can we somehow configure this? or at least exclude it from removing at build files which are not in this list
When working on philna.sh I noticed that this successfully compresses HTML files, but the assets are generated by jekyll-assets (currently version 2.4, though this should be upgraded to version 3) and are not compressed.
Need to look at how Jekyll Assets handles the files and if this project can hook into the Jekyll Assets process to generate compressed files too.
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:
plugins:
- jekyll-node-module
- jekyll-minifier
- jekyll-brotli
- jekyll-gzip
node_modules:
assets:
js: assets/js
css: assets/css
copy:
- source: '@fortawesome/fontawesome-free/webfonts/'
target: assets/webfonts
The ' is missing here (.js):
gzip:
extensions:
- '.html'
- '.css'
- '.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.