{"id":19976694,"url":"https://github.com/jungwoo-an/split-media-query-plugin","last_synced_at":"2026-06-23T13:32:52.228Z","repository":{"id":109495395,"uuid":"331648561","full_name":"Jungwoo-An/split-media-query-plugin","owner":"Jungwoo-An","description":"[EXPERIMENT] Webpack plugin for splitting media query into multiple css files","archived":false,"fork":false,"pushed_at":"2021-02-05T13:34:27.000Z","size":37159,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T22:23:54.008Z","etag":null,"topics":["media-query","plugin","webpack","webpack-plugin"],"latest_commit_sha":null,"homepage":"https://jungwoo-an.github.io/split-media-query-plugin/","language":"TypeScript","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/Jungwoo-An.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":"2021-01-21T14:12:23.000Z","updated_at":"2023-03-04T05:00:23.000Z","dependencies_parsed_at":"2023-05-01T22:31:25.777Z","dependency_job_id":null,"html_url":"https://github.com/Jungwoo-An/split-media-query-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jungwoo-An/split-media-query-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jungwoo-An%2Fsplit-media-query-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jungwoo-An%2Fsplit-media-query-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jungwoo-An%2Fsplit-media-query-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jungwoo-An%2Fsplit-media-query-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jungwoo-An","download_url":"https://codeload.github.com/Jungwoo-An/split-media-query-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jungwoo-An%2Fsplit-media-query-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34691848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["media-query","plugin","webpack","webpack-plugin"],"created_at":"2024-11-13T03:25:10.796Z","updated_at":"2026-06-23T13:32:52.211Z","avatar_url":"https://github.com/Jungwoo-An.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003esplit-media-query-plugin\u003c/h3\u003e\n\u003cp align=\"center\"\u003eWebpack plugin for splitting media query into multiple css files\u003c/p\u003e\n\n## Introduction\n\n_Experimental repository_\n\n**Examples**\n\n- [Bootstrap](https://github.com/Jungwoo-An/split-media-query-plugin/tree/master/example)\n\n## Getting Started\n\n### Prerequisites\n\n- webpack \u003e= 4\n- html-webpack-plugin \u003e=4\n\n### Installation\n\n```bash\n# via npm\n$ npm install -D split-media-query-plugin\n\n# via yarn\n$ yarn add -D split-media-query-plugin\n```\n\n## Usage\n\n```ts\n// webpack.config.js\nconst HtmlWebpackPlugin = require('html-webpack-plugin');\nconst SplitMediaQueryPlugin = require('split-media-query-plugin');\n\nmodule.exports = {\n  // ...\n  plugins: [new HtmlWebpackPlugin(), new SplitMediaQueryPlugin()],\n};\n```\n\n**input**\n\n```css\nhtml {\n  font-size: 14px;\n}\n\n@media (max-width: 767px) {\n  html {\n    font-size: 10px;\n  }\n}\n\n@media (min-width: 768px) and (max-width: 1023px) {\n  html {\n    font-size: 11px;\n  }\n}\n\n@media (min-width: 1024px) {\n  html {\n    font-size: 12px;\n  }\n}\n```\n\n**output**\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003clink rel=\"stylesheet\" href=\"main.css\" /\u003e\n    \u003clink rel=\"stylesheet\" href=\"main1.css\" media=\"(max-width: 767px)\" /\u003e\n    \u003clink\n      rel=\"stylesheet\"\n      href=\"main2.css\"\n      media=\"(min-width: 768px) and (max-width: 1023px)\"\n    /\u003e\n    \u003clink rel=\"stylesheet\" href=\"main3.css\" media=\"(min-width: 1024px)\" /\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjungwoo-an%2Fsplit-media-query-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjungwoo-an%2Fsplit-media-query-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjungwoo-an%2Fsplit-media-query-plugin/lists"}