{"id":44697894,"url":"https://github.com/syntro-opensource/webpack-config","last_synced_at":"2026-02-15T08:35:21.663Z","repository":{"id":37950502,"uuid":"291753906","full_name":"syntro-opensource/webpack-config","owner":"syntro-opensource","description":"Configuration helper for projects using Webpack as build tool","archived":false,"fork":false,"pushed_at":"2023-05-31T21:59:40.000Z","size":1985,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-21T04:16:28.062Z","etag":null,"topics":["config","react","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syntro-opensource.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-31T15:31:54.000Z","updated_at":"2022-06-03T06:47:15.000Z","dependencies_parsed_at":"2023-02-08T01:45:51.235Z","dependency_job_id":null,"html_url":"https://github.com/syntro-opensource/webpack-config","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/syntro-opensource/webpack-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntro-opensource%2Fwebpack-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntro-opensource%2Fwebpack-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntro-opensource%2Fwebpack-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntro-opensource%2Fwebpack-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syntro-opensource","download_url":"https://codeload.github.com/syntro-opensource/webpack-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntro-opensource%2Fwebpack-config/sbom","scorecard":{"id":863634,"data":{"date":"2025-08-11","repo":{"name":"github.com/syntro-opensource/webpack-config","commit":"91270ee5b946c5d483bad36a366fba3ce99763dd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/syntro-opensource/webpack-config/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/syntro-opensource/webpack-config/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/syntro-opensource/webpack-config/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/syntro-opensource/webpack-config/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/syntro-opensource/webpack-config/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/syntro-opensource/webpack-config/tests.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/publish.yml:17","Warn: npmCommand not pinned by hash: .github/workflows/tests.yml:28","Warn: npmCommand not pinned by hash: .github/workflows/tests.yml:40","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T02:04:07.165Z","repository_id":37950502,"created_at":"2025-08-24T02:04:07.166Z","updated_at":"2025-08-24T02:04:07.166Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29473718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T06:58:05.414Z","status":"ssl_error","status_checked_at":"2026-02-15T06:58:05.085Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["config","react","webpack"],"created_at":"2026-02-15T08:35:18.600Z","updated_at":"2026-02-15T08:35:21.655Z","avatar_url":"https://github.com/syntro-opensource.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webpack-config\n\n![Dependabot](https://img.shields.io/badge/dependabot-active-brightgreen?logo=dependabot)\n[![npm](https://img.shields.io/npm/dt/@syntro-opensource/webpack-config)](https://www.npmjs.com/package/@syntro-opensource/webpack-config)\n[![npm (scoped)](https://img.shields.io/npm/v/@syntro-opensource/webpack-config)](https://www.npmjs.com/package/@syntro-opensource/webpack-config)\n\nThis NPM package provides a common webpack configuration, to be used accross\nprojects built by Syntro GmbH. It serves as a source of truth for configuration\nand settings.\n\n## Directory / Module Sturcture\nThe configuration in this package is intended to be used for projects,\nwhere assets need to be pre-packed and displayed to a web frontend.\n\nIn the eyes of this package, every bundle\n* has an entrypoint named `bundle.js`\n* can contain `js`, javascript and styles\n* has a separate subfolder in a `src/` and `dist/` directory\n\nIn a Silverstripe module, the structure would look like this:\n```\nclient/\n  ├─ dist/\n  │   ├─ bundle_1/\n  │   └─ bundle_2/\n  │\n  └─ src/\n      ├─ bundle_1/\n      │    ├─ bundle.js\n      │    ├─ .eslintrc\n      │    ├─ .stylelintrc\n      │    ├─ (.babelrc)\n      │    └─ (...)\n      │\n      └─ bundle_2/\n```\n\u003e For the configuration of eslint and stylelint see the [Docs about lint config](docs/config.md).\n\n## Using the Module Definitions\n\nTo set up a webpack build using this module, create a `webpack.config.js` file\nin your project root. If we wanted to build the project with the structure\ndescribed in the previous section, your config should look like this:\n\n```js\nconst Path = require('path');\nconst webpackConfig = require('@syntro-opensource/webpack-config');\nconst {\n  resolves,\n  modules,\n  plugins,\n} = webpackConfig;\n\n\nconst ENV = process.env.NODE_ENV;\nconst PATHS = {\n  // The path where your modules are located\n  MODULES: 'node_modules',\n  // the root path, where your webpack.config.js is located.\n  ROOT: Path.resolve(),\n  // the root path to your source files\n  SRC: Path.resolve('client/src'),\n  // thirdparty folder containing copies of packages which wouldn't be available on NPM\n  THIRDPARTY: 'thirdparty',\n};\n\nconst config = [\n    {\n      name: 'bundle1',\n      entry: {\n        main: Path.resolve(__dirname, 'client/src/bundle_1')\n      },\n      output: {\n        path: Path.resolve(__dirname, 'client/dist/bundle_1'),\n        filename: '[name].js',\n      },\n      devtool: (ENV !== 'production') ? 'source-map' : '',\n      resolve: resolves(ENV, PATHS),\n      module: modules(ENV, PATHS),\n      plugins: plugins(ENV, PATHS),\n    }, {\n      name: 'bundle2',\n      entry: {\n        main: Path.resolve(__dirname, 'client/src/bundle_2')\n      },\n      output: {\n        path: Path.resolve(__dirname, 'client/dist/bundle_2'),\n        filename: '[name].js',\n      },\n      devtool: (ENV !== 'production') ? 'source-map' : '',\n      resolve: resolves(ENV, PATHS),\n      module: modules(ENV, PATHS),\n      plugins: plugins(ENV, PATHS),\n    }\n];\n\n// do any config manipulation here\n\nmodule.exports = config;\n```\n\nFinally, add a script to your package.json file:\n```json\n{\n  \"scripts\": {\n    \"watch\": \"webpack --watch --mode development\",\n    \"build\": \"webpack --mode production\",\n  }\n}\n```\n\nNow, build your bundles using `npm run build` or `npm run watch`.\n\n## Docs\n\n* [📚 ESLint \u0026 Stylelint \u0026 Browserslist configuration](docs/config.md)\n* [📚 Import aliases](docs/eslint-import-resolver-alias.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntro-opensource%2Fwebpack-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyntro-opensource%2Fwebpack-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntro-opensource%2Fwebpack-config/lists"}