Giter Club home page Giter Club logo

jekyll-gzip's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jekyll-gzip's Issues

Remove .gz from file name

Can we remove .gz from filename, so that it can be used when content hosted on AWS s3.

Thank you.

Instructions in Usage result in a error

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.

ZIPPABLE_EXTENSIONS

can we somehow configure this? or at least exclude it from removing at build files which are not in this list

Doesn't work with assets generated by Jekyll-Assets

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.

not compressing some files node_modules?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.