{"id":16332227,"url":"https://github.com/dimaslanjaka/hexo-webpack","last_synced_at":"2026-04-06T01:35:31.524Z","repository":{"id":200374136,"uuid":"705371032","full_name":"dimaslanjaka/hexo-webpack","owner":"dimaslanjaka","description":"generate static site jekyll/hexo/huge markdown posts using webpack and react","archived":false,"fork":false,"pushed_at":"2023-11-17T14:29:26.000Z","size":5316,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T16:19:56.171Z","etag":null,"topics":["flowbite","flowbite-react","github-pages","gulp","hexo","huge","jekyll","markdown","react","react-router","ssg","webpack"],"latest_commit_sha":null,"homepage":"https://www.webmanajemen.com","language":"TypeScript","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/dimaslanjaka.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,"publiccode":null,"codemeta":null}},"created_at":"2023-10-15T20:26:49.000Z","updated_at":"2024-03-26T03:26:34.000Z","dependencies_parsed_at":"2023-10-16T18:20:34.583Z","dependency_job_id":"482358df-8b6b-41af-be09-8706dad6f60e","html_url":"https://github.com/dimaslanjaka/hexo-webpack","commit_stats":null,"previous_names":["dimaslanjaka/hexo-webpack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dimaslanjaka/hexo-webpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaslanjaka%2Fhexo-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaslanjaka%2Fhexo-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaslanjaka%2Fhexo-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaslanjaka%2Fhexo-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimaslanjaka","download_url":"https://codeload.github.com/dimaslanjaka/hexo-webpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaslanjaka%2Fhexo-webpack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31456662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["flowbite","flowbite-react","github-pages","gulp","hexo","huge","jekyll","markdown","react","react-router","ssg","webpack"],"created_at":"2024-10-10T23:29:38.735Z","updated_at":"2026-04-06T01:35:31.504Z","avatar_url":"https://github.com/dimaslanjaka.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hexo with webpack\ngenerate static site jekyll/hexo/huge markdown posts using webpack\n\n## Advantages\n- reduce site size (useful for github pages with limit **1GB** only)\n- SEO improvement by setting html metadata then add `\u003cscript\u003e` tag to main bundle.js\n\n## Features\n- markdown string to react jsx element converter\n- html string to react jsx element converter\n\n## Structure folders and files\n\n- `.cache` webpack cache directory and post map json from `gulp map`\n- `source` all page assets and markdowns (ex: source/about.md -\u003e http://example.com/about)\n- `public` all static assets (no markdown should be processed)\n- `src` all layout react, scss, css\n- `src-posts` source markdown post\n- `source/_posts` auto generated post from `src-posts` using `sbg post copy`\n- `tmp` temp folder\n- `tmp/meta` all parsed metadata post\n- `tmp/static` all SEO optimized static html\n  \u003e all generated html should be processed with `gulp build-html` later\n- `_config.json` auto generated file from `_config.yml` with additional properties\n- `routes.json` auto generated file from all mapped posts and pages\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Light\" src=\"https://github.com/dimaslanjaka/hexo-webpack/assets/12471057/0e3b4e79-afa8-4cda-9818-e022bf5bc28d\" width=\"45%\" title=\"editor preview\" /\u003e\n\u0026nbsp; \u0026nbsp;\n  \u003cimg alt=\"Dark\" src=\"https://github.com/dimaslanjaka/hexo-webpack/assets/12471057/747cdc5d-031e-4c69-a62b-d4acce1e4781\" width=\"45%\" title=\"web preview\" /\u003e\n\u003c/p\u003e\n\n\n## Installation\n\n- install\n\n```bash\nyarn install\necho {} \u003e _config.json\necho [] \u003e routes.json\nmkdir -p tmp\nmkdir -p tmp/meta\nmkdir -p tmp/static\nmkdir -p src/posts\n```\n\n- copy source post\n\n```bash\nnpx sbg post copy\n```\n\n- run standalone scripts\n\n```bash\nnpx sbg post standalone\n```\n\n- mapping source posts\n\n```bash\ngulp map\n```\n\n- generate routes\n\u003e you can override options by cli arguments see: [sample](https://github.com/dimaslanjaka/hexo-webpack/blob/e596be2c5df1a2d53ba0e2e3b3721d3dc8d7a4fa/gulpfile.genr.ts#L17) [complex](https://github.com/dimaslanjaka/hexo-webpack/blob/9d0580c75de9acf19b2c9876886f3df9bb7714f4/gulpfile.genr.ts#L21)\n```bash\ngulp route\n```\n\n## site production build\n\n```bash\nyarn run build\n```\n\n## watch production build\n\nterminal 1\n\n\u003e listening dist folder at `http://localhost:4000`\n\n```bash\ngulp serve\n```\n\nterminal 2\n\n\u003e watching `src`, `public`, `source` folders then run build production\n\n```bash\ngulp build-watch\n```\n\n## Q\u0026A\n\n### Why webpack error file not found\n\nyou can noticing webpack to rebuild by\n\n```bash\ngulp notice\n```\n\n## RoadMap\n\n\u003c!--\n|\u0026check;|_|\u0026cross;|\n|\u0026#x2611;|\u0026#x2610;|\u0026#x2612;|\n--\u003e\n\n| Status | Goal | Date |\n| :---: | :--- | --- |\n| \u0026#x2611; | sync configuration setup webpack, typescript, babel, react | 09/2023 |\n| \u0026#x2611; | create markdown to JSX react converter | 09/2023 |\n| \u0026#x2611; | create SEO static html for posts | 09/2023 |\n| \u0026#x2611; | mapping and populate markdown posts | 09/2023 |\n| \u0026#x2610; | mapping and populate markdown pages from `source` folder | - |\n| \u0026#x2610; | complete layout using `flowbite-react` | - |\n| \u0026#x2610; | generate yoast seo sitemaps | - |\n| \u0026#x2610; | generate atom/feeds | - |\n| \u0026#x2610; | localization (multi languages) | - |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimaslanjaka%2Fhexo-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimaslanjaka%2Fhexo-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimaslanjaka%2Fhexo-webpack/lists"}