{"id":21050941,"url":"https://github.com/theopenwebjp/webpack-helpers","last_synced_at":"2025-03-13T23:20:35.536Z","repository":{"id":57684393,"uuid":"259009407","full_name":"theopenwebjp/webpack-helpers","owner":"theopenwebjp","description":"Collection of webpack helpers for easily generating config.","archived":false,"fork":false,"pushed_at":"2024-03-21T15:08:55.000Z","size":866,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T16:06:01.684Z","etag":null,"topics":["loader","nodejs","webpack","webpack-plugin","webpack-plugins"],"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/theopenwebjp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-04-26T11:07:48.000Z","updated_at":"2024-03-21T15:08:59.000Z","dependencies_parsed_at":"2024-11-19T15:48:57.742Z","dependency_job_id":"f67533b2-a8f5-4721-b559-08cf4b7de707","html_url":"https://github.com/theopenwebjp/webpack-helpers","commit_stats":{"total_commits":9,"total_committers":3,"mean_commits":3.0,"dds":0.5555555555555556,"last_synced_commit":"1e711535576f6768b493c54f0e1d6b0e7a56f0a7"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fwebpack-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fwebpack-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fwebpack-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fwebpack-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theopenwebjp","download_url":"https://codeload.github.com/theopenwebjp/webpack-helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243495377,"owners_count":20299924,"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":["loader","nodejs","webpack","webpack-plugin","webpack-plugins"],"created_at":"2024-11-19T15:48:47.254Z","updated_at":"2025-03-13T23:20:35.518Z","avatar_url":"https://github.com/theopenwebjp.png","language":"HTML","readme":"# Description\r\n\r\nCollection of Webpack helper functions, rules, loaders, constants, etc.\r\n\r\n## Usage\r\n\r\n```bash\r\nnpm install @theopenweb/webpack-helpers\r\n```\r\n\r\nEach function can be found in the source code.\r\nOnly the main functions are found below:\r\n\r\n```js\r\nconst WebpackHelpers = require('@theopenweb/webpack-helpers')\r\n\r\n// Create basic/common config\r\nmodule.exports = WebpackHelpers.Recipes.common(__dirname)\r\n\r\n// Create basic/common rules\r\nconst rules = WebpackHelpers.Rules.common()\r\n\r\n```\r\n\r\n## Help\r\n\r\nCreate config:\r\n\r\n```js\r\n// webpack.config.js\r\nconst WebpackHelpers = require('@theopenweb/webpack-helpers')\r\nmodule.exports = WebpackHelpers.Recipes.common(__dirname)\r\n```\r\n\r\nProduction build script:\r\n\r\n```json\r\n{\r\n  \"scripts\": {\r\n    \"build-production\": \"cross-env NODE_ENV=production webpack --mode production\"\r\n  }\r\n}\r\n```\r\n\r\nDevelopment build script:\r\n\r\n```json\r\n{\r\n  \"scripts\": {\r\n    \"build-development\": \"cross-env NODE_ENV=development webpack\"\r\n  }\r\n}\r\n```\r\n\r\n## Test\r\n\r\nTesting is done using `npm run test`.\r\nOnly basic testing is done now. Please feel free to request improved testing.\r\n\r\n## Notes\r\n\r\n- \"-p changed to --mode production\": [Webpack when run in terminal it gives an \"error error: unknown option '-p'\"](https://stackoverflow.com/questions/65592541/webpack-when-run-in-terminal-it-gives-an-error-error-unknown-option-p)\r\n- Changelog generation:\r\n  - [auto-changelog](https://github.com/CookPete/auto-changelog)\r\n  - Install: `npm i -g auto-changelog`\r\n  - Execute: `auto-changelog`\r\n\r\n## Feedback\r\n\r\nFeel free to contact about feedback.\r\nIf you have any helpers you would like to add, please get in contact.\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopenwebjp%2Fwebpack-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheopenwebjp%2Fwebpack-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopenwebjp%2Fwebpack-helpers/lists"}