{"id":41214771,"url":"https://github.com/leonied7/yii2-webpack","last_synced_at":"2026-01-22T23:58:12.580Z","repository":{"id":57403751,"uuid":"178364212","full_name":"leonied7/yii2-webpack","owner":"leonied7","description":"Webpack integration with Yii2","archived":false,"fork":false,"pushed_at":"2019-06-01T09:16:30.000Z","size":184,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-14T18:48:12.709Z","etag":null,"topics":["assets","assets-management","webpack","yii2"],"latest_commit_sha":null,"homepage":null,"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/leonied7.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}},"created_at":"2019-03-29T08:27:51.000Z","updated_at":"2023-06-02T03:47:35.000Z","dependencies_parsed_at":"2022-08-26T00:21:34.669Z","dependency_job_id":null,"html_url":"https://github.com/leonied7/yii2-webpack","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/leonied7/yii2-webpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonied7%2Fyii2-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonied7%2Fyii2-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonied7%2Fyii2-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonied7%2Fyii2-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonied7","download_url":"https://codeload.github.com/leonied7/yii2-webpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonied7%2Fyii2-webpack/sbom","scorecard":{"id":585132,"data":{"date":"2025-08-11","repo":{"name":"github.com/leonied7/yii2-webpack","commit":"dac667515a9dd14fc94abec84cf8f962b3fe80ba"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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"}}]},"last_synced_at":"2025-08-20T20:15:27.504Z","repository_id":57403751,"created_at":"2025-08-20T20:15:27.504Z","updated_at":"2025-08-20T20:15:27.504Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28675261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"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":["assets","assets-management","webpack","yii2"],"created_at":"2026-01-22T23:58:11.815Z","updated_at":"2026-01-22T23:58:12.569Z","avatar_url":"https://github.com/leonied7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii2 Webpack integration\n========================\n\nThis extension allow use [Webpack 3 or 4](https://webpack.js.org/) as the asset manager.\n\nInstallation\n------------\n\n```bash\n  npm i --save yii2-webpack\n```\n\n```bash\n  yarn add yii2-webpack\n```\n\n**Package.json**\n\nThe project needs a `package.json` file to specify how to start `yii2-webpack`:\n\n```json\n{\n  \"name\": \"my-app\",\n  \"scripts\": {\n    \"dev\": \"yii2-webpack-exec --yii2-webpack-config dev\",\n    \"build\": \"yii2-webpack-exec --yii2-webpack-config prod\"\n  }\n}\n```\n\n**Flags**\n\n* `--yii2-webpack-config`: \n    * `dev` - uses `webpack-dev-server` by default and config `webpack.dev.js` located in webpack directory\n    * `prod` - uses `webpack` by default and config `webpack.prod.js` located in webpack directory\n* `--yii2-webpack-command` - to use different command \n\n\u003e The remaining flags will be sent to the command\n\nHowto use it\n------------\n\n`scripts` will launch yii2-webpack via `npm run dev`. The script uses the config of your development.\n\nAll entries must be described by an object. The key is used for the asset name.\n\nExamples\n--------\n\nWebpack config:\n```\n{\n  ...\n  entry: {\n    main: './src/main.js',\n    bootstrap: './src/bootstrap.js'\n  }\n  ...\n}\n```\nyii2-webpack-settings.json:\n```json\n{\n  \"assetDirectory\":\"assets\",\n  \"namespace\":\"@app/webpack\"\n}\n```\n\nCreates an asset directory in `webpack/assets` with the following contents:\n* MainAsset.php\n* BootstrapAsset.php\n\n\nConfiguration\n-------------\n\n\u003eBy default, the plugin works with relation to the project root and creates assets in the `assets` directory\n\nUse the CLI for change the configuration\n1. Add to `package.json` script `yii2-webpack`\n\n    ```json\n    {\n      \"name\": \"my-app\",\n      \"scripts\": {\n        \"yii2-webpack\": \"yii2-webpack\",\n        \"dev\": \"yii2-webpack-exec --yii2-webpack-config dev\"\n      }\n    }\n    ```\n2. Run via command line `yii2-webpack`\n3. The CLI will create a `yii2-webpack-settings.json` config in the webpack directory\n\n**Options**\n\nAvailable parameters `yii2-webpack-settings.json`:\n\n|Name|Type|Default|Description|\n|:--:|:--:|:-----:|:----------|\n|**[`assetDirectory`]**|`{String}`|`assets`|`webpack` relative path to the output asset directory|\n|**[`namespace`]**|`{String}`|`@app`|Namespace before your `package.json`|\n|**[`webpackDirectory`]**|`{String}`||The directory up to `package.json` relative to @app. **Deprecated**, use `namespace` parameter|\n|**[`devConfig`]**|`{String}`|`'webpack.dev.js'`|The file of the development configuration. Defaults to `webpack.dev.js`. You can specify a subdirectory here too (eg: `src/dev.js`)|\n|**[`prodConfig`]**|`{String}`|`'webpack.prod.js'`|The file of the production configuration. Defaults to `webpack.prod.js`. You can specify a subdirectory here too (eg: `src/prod.js`)|\n|**[`template`]**|`{String}`||`webpack` relative or absolute path to the template. By default it will use `\u003cpath_to_yii2-webpack\u003e/index.ejs`. Please see the [docs](https://github.com/jantimon/html-webpack-plugin/blob/master/docs/template-option.md) for details|\n\n\u003e All described parameters are passed to the template and can be obtained via `htmlWebpackPlugin.options.yii2Entry.options`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonied7%2Fyii2-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonied7%2Fyii2-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonied7%2Fyii2-webpack/lists"}