{"id":22274192,"url":"https://github.com/tcb13/wpbento-bundler","last_synced_at":"2025-10-08T00:39:26.476Z","repository":{"id":265890527,"uuid":"645397931","full_name":"TCB13/WPBento-Bundler","owner":"TCB13","description":"A sane and simple Webpack setup for WordPress development.","archived":false,"fork":false,"pushed_at":"2023-05-25T15:31:22.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T12:08:11.442Z","etag":null,"topics":["scss","typescript","webpack","wordpress-boilerplate","wordpress-bundle","wordpress-development","wordpress-theme-development","wordpress-webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/TCB13.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-05-25T14:59:53.000Z","updated_at":"2024-01-18T10:14:23.000Z","dependencies_parsed_at":"2024-12-01T12:18:16.223Z","dependency_job_id":null,"html_url":"https://github.com/TCB13/WPBento-Bundler","commit_stats":null,"previous_names":["tcb13/wpbento-bundler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TCB13%2FWPBento-Bundler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TCB13%2FWPBento-Bundler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TCB13%2FWPBento-Bundler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TCB13%2FWPBento-Bundler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TCB13","download_url":"https://codeload.github.com/TCB13/WPBento-Bundler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227922911,"owners_count":17840940,"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":["scss","typescript","webpack","wordpress-boilerplate","wordpress-bundle","wordpress-development","wordpress-theme-development","wordpress-webpack"],"created_at":"2024-12-03T13:18:25.308Z","updated_at":"2025-10-08T00:39:21.446Z","avatar_url":"https://github.com/TCB13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPBento Bundler\nA sane and simple Webpack setup for WordPress development.\n\n**Main Features:**\n - Runs alongside any webserver/PHP and does not interface nor interferes with it\n - Bundles SCSS into a single `style.min.css` file\n - Bundles JS modules (and optionally TypeScript) into `script.min.js`\n - Browser live-reload\n - ES Modules\n\n## Quick Setup\n\n1. Folder structure:\n````\n ./       -\u003e your WordPress theme folder\n ./src    -\u003e source folder for js, ts, scss files\n ./assets -\u003e complied/bundled output files\n````\n2. Configuration for `package.json`:\n````\n \"type\": \"module\",\n \"scripts\": {\n \t\"watch\": \"webpack --progress --watch --mode development\",\n \t\"build-prod\": \"webpack --mode production\",\n \t\"build-dev\": \"webpack --mode development\"\n },\n````\n3. Install dev dependencies:\n````\n $ npm i\n \n # OR if you aren't cloning this repo:\n $ npm install @babel/core @babel/preset-env babel-loader css-loader mini-css-extract-plugin node-sass sass-loader style-loader url-loader webpack webpack-cli browser-sync-webpack-plugin --save-dev\n````\n4. Add the bundled files to your `header.php`:\n````\n \u003clink rel=\"stylesheet\" href=\"\u003c?php bloginfo('template_directory'); ?\u003e/assets/style.min.css\" type=\"text/css\" media=\"screen\"/\u003e\n \u003cscript src=\"\u003c?php bloginfo('template_directory'); ?\u003e/assets/script.min.js\" defer\u003e\u003c/script\u003e\n````\n\n## Usage\n````\n $ npm run watch        # Development with live reload\n $ npm run build-prod   # Build for production\n````\n\n\n________\n\nBrought to you by TCB13 (Tadeu Bento) 2023. Licensed under MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcb13%2Fwpbento-bundler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcb13%2Fwpbento-bundler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcb13%2Fwpbento-bundler/lists"}