{"id":25166254,"url":"https://github.com/filefabrik/hugo-tailwindcss-jit","last_synced_at":"2025-10-24T04:30:37.491Z","repository":{"id":230434978,"uuid":"369793336","full_name":"Filefabrik/hugo-tailwindcss-jit","owner":"Filefabrik","description":"Get Static Side Generator Hugo running with tailwind 2 and JIT","archived":false,"fork":false,"pushed_at":"2021-05-27T12:25:38.000Z","size":56,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-29T18:28:54.845Z","etag":null,"topics":["hugo","tailwind","tailwind-jit","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Filefabrik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-05-22T11:42:50.000Z","updated_at":"2024-03-29T18:29:07.123Z","dependencies_parsed_at":"2024-04-02T07:00:32.783Z","dependency_job_id":null,"html_url":"https://github.com/Filefabrik/hugo-tailwindcss-jit","commit_stats":null,"previous_names":["filefabrik/hugo-tailwindcss-jit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Filefabrik%2Fhugo-tailwindcss-jit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Filefabrik%2Fhugo-tailwindcss-jit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Filefabrik%2Fhugo-tailwindcss-jit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Filefabrik%2Fhugo-tailwindcss-jit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Filefabrik","download_url":"https://codeload.github.com/Filefabrik/hugo-tailwindcss-jit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237910103,"owners_count":19385833,"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","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":["hugo","tailwind","tailwind-jit","tailwindcss"],"created_at":"2025-02-09T05:48:39.859Z","updated_at":"2025-10-24T04:30:37.134Z","avatar_url":"https://github.com/Filefabrik.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hugo-tailwind-jit\nGet Static Side Generator Hugo running with tailwind 2 and JIT\n\nnode.js: lts/fermium -\u003e v14.17.0\n\nhugo: hugo v0.83.1\n\nIDE: PHPStorm 2021.1.2\n\nMy intension was to get Hugo working with tailwindcss and the new JIT compiler.\n\nHonestly, I have saved myself a deep review of all existing possibilities.\n\nHugo should run with tailwindcss 2.* for development and with the new tailwind jit. No more and no less.\n\nI had oriented myself on the following tutorial:\n\nhttps://www.wimdeblauwe.com/blog/2021/01/18/using-hugo-with-tailwind-css-2/ .\n\nUsually tailwindcss JIT compiler is needed when you work on the layout files. Possibly also in the content/*.md files. Otherwise rather not.\n\nApplication:\ncheck out into a new folder the master-git here.\ninstall all dependencies with \n```shell\nnpm i -D\n```\n\nstart in the package.json\n\n**devWatcherTailwindStartFirst**\nthen start the hugo-server\n**server**\n\nopen in browser \n\nhttp://localhost:1313/\n\nedit the layout-files under /layouts and, you will see the tailwind.css is not 3MB big but a few KB\n\nfor the build of the page i created an extra task \"**buildTailwindAndHugo**\".\n\nConclusion: if you don't work on the layouts you need the **devWatcherTailwindStartFirst**, then just start the server. \n\n![ksnip_20210522-132900](https://user-images.githubusercontent.com/84433563/119225757-216e3280-bb06-11eb-903e-cd4ff937a339.png)\n\nHope that helps\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilefabrik%2Fhugo-tailwindcss-jit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilefabrik%2Fhugo-tailwindcss-jit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilefabrik%2Fhugo-tailwindcss-jit/lists"}