{"id":18264872,"url":"https://github.com/bem/webpack-bem-plugin","last_synced_at":"2026-05-06T08:36:27.303Z","repository":{"id":72715698,"uuid":"119369534","full_name":"bem/webpack-bem-plugin","owner":"bem","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-25T12:59:36.000Z","size":55,"stargazers_count":1,"open_issues_count":11,"forks_count":2,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-06-08T13:41:52.984Z","etag":null,"topics":["bem","build","react","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-01-29T10:43:29.000Z","updated_at":"2024-10-04T01:00:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"bca7b64e-65ed-42cf-907d-92b02a1ba0f4","html_url":"https://github.com/bem/webpack-bem-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bem/webpack-bem-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bem%2Fwebpack-bem-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bem%2Fwebpack-bem-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bem%2Fwebpack-bem-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bem%2Fwebpack-bem-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bem","download_url":"https://codeload.github.com/bem/webpack-bem-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bem%2Fwebpack-bem-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32685011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["bem","build","react","webpack"],"created_at":"2024-11-05T11:16:21.452Z","updated_at":"2026-05-06T08:36:27.290Z","avatar_url":"https://github.com/bem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack BEM plugin\n\nSimple steps to use [BEM](https://en.bem.info/methodology/quick-start/) in your [React](https://reactjs.org/) project:\n\n1. Write components as [bem-react-core](https://github.com/bem/bem-react-core) declarations\n2. Use [bem-import-notation](https://github.com/bem/bem-sdk/tree/master/packages/import-notation#notation) to `import` or `require` components\n3. Define project structure in `bemrc` config file\n4. Build project using [webpack](https://github.com/webpack/webpack) and **Webpack-BEM-plugin**\n5. Enjoy :wink:\n\n## Examples\n\n\u003e npm run build-examples\n\nEach example has its `public/*.html`.\n\n* Char table ([source](examples/char-table)) `js` `no-sets` `no-babel`\n* Few components ([source](examples/few-components)) `js/css` `sets` `babel`\n* Promo ([source](examples/promo)) `js/css` `sets` `library` `plugins` `babel`\n\n## Plugin options\n\n|Name|Type|Description|\n|----|----|-----------|\n| **`[techs]`** | `{String[]}` | List of techs in project to build. Default is `['js']` |\n| **`[techMap]`** | `{Object}` | Maps techs to actual file extensions. Tech with no mapping treated as file extension as is. Example of custom mapping: `{ js: 'react.js' }` |\n| **`[libs]`** | `{Object}` | Stores inline `bemrc` configurations for some libraries. Use when a library has not its `bemrc` file and adding it in library codebase is complicated |\n| **`[plugins]`** | `{Function}` | Callback returns 3rd party plugins with no \"child-compiler\" support. Example is [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) |\n\n## Run tests\n\n\u003e npm test\n\n## Known issues\n\n* [Flat](https://en.bem.info/methodology/filestructure/#flat)-scheme [is not supported](https://github.com/bem/webpack-bem-plugin/issues/6)\n* [No windows support](https://github.com/bem/webpack-bem-plugin/issues/4)\n* [No i18n support](https://github.com/bem/webpack-bem-plugin/issues/7)\n\n## License\n\nCode and documentation copyright 2018 YANDEX LLC. Code released under the [Mozilla Public License 2.0](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbem%2Fwebpack-bem-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbem%2Fwebpack-bem-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbem%2Fwebpack-bem-plugin/lists"}