{"id":19751230,"url":"https://github.com/tkareine/jekyll-minibundle-example","last_synced_at":"2025-09-21T11:47:45.954Z","repository":{"id":48774390,"uuid":"77484086","full_name":"tkareine/jekyll-minibundle-example","owner":"tkareine","description":"Jekyll Minibundle example site","archived":false,"fork":false,"pushed_at":"2024-10-28T18:28:42.000Z","size":48,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-09T01:02:24.839Z","etag":null,"topics":["assets","example-project","fingerprinting","jekyll-minibundle","minification"],"latest_commit_sha":null,"homepage":"https://tkareine.github.io/jekyll-minibundle-example/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tkareine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-27T21:36:54.000Z","updated_at":"2024-05-25T17:19:19.000Z","dependencies_parsed_at":"2025-01-10T21:33:02.905Z","dependency_job_id":"13098e7c-af61-45e5-a711-cb2660a2c4b0","html_url":"https://github.com/tkareine/jekyll-minibundle-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tkareine/jekyll-minibundle-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkareine%2Fjekyll-minibundle-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkareine%2Fjekyll-minibundle-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkareine%2Fjekyll-minibundle-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkareine%2Fjekyll-minibundle-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkareine","download_url":"https://codeload.github.com/tkareine/jekyll-minibundle-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkareine%2Fjekyll-minibundle-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276235452,"owners_count":25608050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assets","example-project","fingerprinting","jekyll-minibundle","minification"],"created_at":"2024-11-12T02:42:55.811Z","updated_at":"2025-09-21T11:47:45.923Z","avatar_url":"https://github.com/tkareine.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jekyll Minibundle example site\n\nAn example site using [Jekyll] with [Minibundle][JekyllMinibundle]\nplugin to fingerprint CSS and JavaScript assets. It's deployed with\n[GitHub Pages][GitHubPages] at\n[https://tkareine.github.io/jekyll-minibundle-example/](https://tkareine.github.io/jekyll-minibundle-example/).\n\n[Sass] compiles stylesheets written in SCSS syntax into a single CSS\noutput file. Minibundle includes the output file of Sass with the\n`ministamp` Liquid tag into the generated site. The path of the output\nfile includes the MD5 fingerprint of the file's contents. See\n[_includes/index/head.html](_includes/index/head.html). This\ndemonstrates how to include the output of an external tool handling\nasset compiling, bundling and minifying into Jekyll. The same mechanism\nworks with JavaScript compilation tools, such as [Browserify] and\n[webpack], too. You can use the `ministamp` tag to fingerprint any type\nof file.\n\nThe JavaScript sources in this example demonstrate how to use\nMinibundle's `minibundle` Liquid block to feed JavaScript source files\nto [UglifyJS][UglifyJS2] via stdin, read the minified output from\nstdout, and include the output file in the generated site. The path of\nthe output file includes the MD5 fingerprint of the file's contents. See\n[_includes/scripts/body.html](_includes/scripts/body.html). The bundling\nfeatures of `minibundle` are really that lightweight, but sometimes\nthat's just enough.\n\n## Setup environment\n\nThe compile the site, you'll need [Ruby] and [Node.js][NodeJs]\nprogramming environments. For Ruby, you'll need [Bundler] as well.\n\n1. `cd jekyll-minibundle-example`\n2. `bundle install`\n3. `npm ci`\n\n## Run the example\n\nFirst, compile Sass source files:\n\n``` bash\nbundle exec rake sass:compile\n```\n\nAlternatively, for more convenient workflow, run Sass in watch mode so\nthat you'll see the changes in the site when changing `.scss` files:\n\n``` bash\nbundle exec rake sass:watch\n```\n\nOpen another terminal for running Jekyll. You have the option to run\nMinibundle in development mode or without it. In development mode,\nthere's no asset fingerprinting and files bundled with `minibundle`\nLiquid block appear as is.\n\nTo launch Jekyll with Minibundle without development mode:\n\n``` bash\nbundle exec rake jekyll:watch:prod\n```\n\nAlternatively, to launch Jekyll with Minibundle in development mode:\n\n``` bash\nbundle exec rake jekyll:watch:dev\n```\n\nYou can view the compiled site at\n[http://localhost:8080/jekyll-minibundle-example/](http://localhost:8080/jekyll-minibundle-example/).\n\nTo see all the commands available:\n\n``` bash\nbundle exec rake -D\n```\n\n## License\n\n[![CC0](https://licensebuttons.net/p/zero/1.0/80x15.png)][CC0] This work\nis dedicated into public domain.\n\n[Browserify]: http://browserify.org/\n[Bundler]: http://bundler.io/\n[CC0]: https://creativecommons.org/publicdomain/zero/1.0/\n[GitHubPages]: https://docs.github.com/en/pages\n[JekyllMinibundle]: https://github.com/tkareine/jekyll-minibundle\n[Jekyll]: https://jekyllrb.com/\n[NodeJs]: https://nodejs.org/en/\n[Ruby]: https://www.ruby-lang.org/en/\n[Sass]: http://sass-lang.com/\n[UglifyJS2]: https://github.com/mishoo/UglifyJS2\n[webpack]: https://webpack.github.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkareine%2Fjekyll-minibundle-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkareine%2Fjekyll-minibundle-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkareine%2Fjekyll-minibundle-example/lists"}