{"id":15551373,"url":"https://github.com/lamo2k123/theme-webpack-plugin","last_synced_at":"2025-06-22T11:37:15.803Z","repository":{"id":141857441,"uuid":"56323516","full_name":"lamo2k123/theme-webpack-plugin","owner":"lamo2k123","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-16T08:27:36.000Z","size":27,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-28T12:07:50.256Z","etag":null,"topics":["es6","javascript","js","node-js","nodejs","theme","webpack","webpack-plugin","webpack2","yarn"],"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/lamo2k123.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":"2016-04-15T13:48:49.000Z","updated_at":"2018-07-16T08:27:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9f7336a-cc12-4140-a1c6-97030af04cb8","html_url":"https://github.com/lamo2k123/theme-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/lamo2k123/theme-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamo2k123%2Ftheme-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamo2k123%2Ftheme-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamo2k123%2Ftheme-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamo2k123%2Ftheme-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamo2k123","download_url":"https://codeload.github.com/lamo2k123/theme-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamo2k123%2Ftheme-webpack-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261289026,"owners_count":23136045,"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":["es6","javascript","js","node-js","nodejs","theme","webpack","webpack-plugin","webpack2","yarn"],"created_at":"2024-10-02T14:04:39.056Z","updated_at":"2025-06-22T11:37:10.791Z","avatar_url":"https://github.com/lamo2k123.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About\nThis plugin allows you to use **theme** within any imported library that support it.\n\nWhat is theme? Theme is just a directory inside module base directory that holds theme specific content (code, css, images, anything...)\n\n## Usage\n\nDefine module content\n\n```\n/my-cool-module\n    /desktop\n        index.js\n    /mobile\n        index.js\n    index.js\n    package.json\n```\n\nAdd plugin to webpack resolver passing regex to match module name and theme name\n\n```javascript\nconst ThemeWebpackPlugin = require('theme-webpack-plugin');\n\n\nresolver: {\n    plugins: [\n            new ThemeWebpackPlugin(/my-(cool|chill)-module/, 'desktop')\n        ]\n    };\n}\n```\n\nImport module\n\n```javascript\nimport MyThemedClass from 'my-cool-module';\n```\n\nNow MyThemedClass is imported not from my-cool-module directory, but from my-cool-module/dekstop\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamo2k123%2Ftheme-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamo2k123%2Ftheme-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamo2k123%2Ftheme-webpack-plugin/lists"}