{"id":26566286,"url":"https://github.com/code-soup/webpack-php-boilerplate","last_synced_at":"2026-04-12T04:36:12.343Z","repository":{"id":48374796,"uuid":"361364401","full_name":"code-soup/webpack-php-boilerplate","owner":"code-soup","description":"Webpack5 config boilerplate for use with standalone PHP files","archived":false,"fork":false,"pushed_at":"2021-07-29T08:48:51.000Z","size":1181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T18:20:33.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code-soup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-25T07:48:24.000Z","updated_at":"2021-07-29T08:48:54.000Z","dependencies_parsed_at":"2022-08-24T14:49:48.136Z","dependency_job_id":null,"html_url":"https://github.com/code-soup/webpack-php-boilerplate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/code-soup/webpack-php-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-soup%2Fwebpack-php-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-soup%2Fwebpack-php-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-soup%2Fwebpack-php-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-soup%2Fwebpack-php-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-soup","download_url":"https://codeload.github.com/code-soup/webpack-php-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-soup%2Fwebpack-php-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31704492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"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":[],"created_at":"2025-03-22T18:20:07.403Z","updated_at":"2026-04-12T04:36:12.324Z","avatar_url":"https://github.com/code-soup.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Webpack5 build script boilerplate for PHP \nWebpack5 build script for creating static PHP and HTML pages.\n\n\n## Requirements\n- Local web server\n- [PHP](https://secure.php.net/manual/en/install.php)\n- [Node.js](http://nodejs.org/) \u003e= 12.14.0\n- [Yarn](https://yarnpkg.com/en/docs/install)\n\nIncluded features\n- SCSS\n- Js\n- Stylelint\n- Automatically validate, fix and re-order your css properties\n\n\n## Installation\nNavigate to your web server root directory, and create a new folder for your project:\n```\nmkdir new-project \u0026\u0026 cd new-project\n```\n\nClone repository\n```\ngit clone git@github.com:code-soup/webpack-php-boilerplate.git .\n```\n\nStart fresh, remove .git folder and create new git repository.\nThis will ensure that your repository does not include history from original\n```\nrm -rf .git\ngit init\ngit add . \ngit commit -am 'Init setup'\n```\n\nInstall dependencies\n```\nyarn\n```\n## Configurations\nUpdate `publicPath` and `publicPathProd` in `/src/config.js`\nFor other options please read comments inside of a config.js file.\n\n**Example 1**\n```\nhttp://localhost/my-small-project\nhttps://www.mysmallproject.com\n\npublicPath: '/my-small-project'\npublicPathProd: '/'\n```\n**Example 2**\n```\nhttp://localhost/landing-pages/new-product-landing\nhttps://www.projectwebsite.com/new-product-xyz\n\npublicPath: '/landing-pages/new-product-landing'\npublicPathProd: '/new-product-xyz'\n```\n**Example 3**\n```\nhttp://local.domain/html-templates/new-template\nhttps://www.mytemplates.com/blue-template\n\ndevHost: 'http://local.domain',\npublicPath: '/html-templates/new-template'\npublicPathProd: '/blue-template'\n```\n\n## Commands\n```\nyarn start\n```\nStart development in the watch mode.\nThis will automatically compile css/js and refresh browser\n\n```\nyarn build\n```\nBuild all css/js, same as `start` but this will not monitor file changes and autoupdate/regenerate build.\n\n```\nyarn build:prod\n```\nCreate optimised build for production.\nDo this before you move your files to production server\n\n#### Other commands\n```\nyarn lint                // Lint your source Js/SCSS files\n\nyarn lint:styles         // lint styles only\nyarn lint:styles --fix   // lint styles and attempt to fix errors\n\nyarn lint:scripts        // lint scripts only\nyarn lint:scripts --fix  // lint scripts and attempt to fix errors\n\nyarn clean               // delete /dist directory\nyarn reinit              // delete /dist and /node_modules directories and reinstall dependencies\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-soup%2Fwebpack-php-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-soup%2Fwebpack-php-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-soup%2Fwebpack-php-boilerplate/lists"}