{"id":15285937,"url":"https://github.com/vitaliyr/postcss-esplit","last_synced_at":"2025-04-13T02:42:19.512Z","repository":{"id":57327984,"uuid":"45990249","full_name":"VitaliyR/postcss-esplit","owner":"VitaliyR","description":"PostCSS plugin for splitting css into multiple css files with sourcemaps support for preventing limitation of shinny ie9","archived":false,"fork":false,"pushed_at":"2017-04-05T11:47:30.000Z","size":38,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T21:44:48.562Z","etag":null,"topics":["postcss"],"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/VitaliyR.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-11-11T15:32:57.000Z","updated_at":"2022-07-31T19:31:13.000Z","dependencies_parsed_at":"2022-09-18T17:50:11.864Z","dependency_job_id":null,"html_url":"https://github.com/VitaliyR/postcss-esplit","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitaliyR%2Fpostcss-esplit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitaliyR%2Fpostcss-esplit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitaliyR%2Fpostcss-esplit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitaliyR%2Fpostcss-esplit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VitaliyR","download_url":"https://codeload.github.com/VitaliyR/postcss-esplit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657856,"owners_count":21140843,"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":["postcss"],"created_at":"2024-09-30T15:08:39.679Z","updated_at":"2025-04-13T02:42:19.451Z","avatar_url":"https://github.com/VitaliyR.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS eSplit [![Build Status][ci-img]][ci]\n\n[PostCSS] plugin for splitting css into multiple css files with sourcemaps support for preventing limitation of shinny ie9.\n\n[PostCSS]: https://github.com/postcss/postcss\n[ci-img]:  https://travis-ci.org/VitaliyR/postcss-esplit.svg?branch=master\n[ci]:      https://travis-ci.org/VitaliyR/postcss-esplit\n\n```css\n/* Input example - style.css */\n@charset \"UTF-8\";\n\n.someClass {\n    display: block;\n}\n\n@media (max-width: 768px) {\n    p {\n        color: red;\n    }\n\n    em {\n        color: blue;\n    }\n}\n```\n\n```css\n/* Output example with maxSelectors = 2 */\n\n/* style.css */\n@charset \"UTF-8\";\n@import url(style-0.css);\n\n@media (max-width: 768px) {\n    em {\n        color: blue;\n    }\n}\n\n\n/* style-0.css */\n.someClass {\n    display: block;\n}\n\n@media (max-width: 768px) {\n    p {\n        color: red;\n    }\n}\n\n```\n\n## Install\n```\nnpm install postcss-esplit --save\n```\n\n## Usage\n\n```js\npostcss([ require('postcss-esplit')(/*opts*/) ])\n```\n\nSee [PostCSS] docs for examples for your environment.\n\nAlso, starting from version 0.0.2 there are no need to place the plugin in the end of the\nprocessor plugins list.\n\n\n## Options\n* `maxSelectors`    *{number=4000}* count of selectors exceeding which css file should be separated\n* `fileName` *{string=%original%-%i%}* template for retrieving name of separated files\n    * `%original%` *{string}* name of original file\n    * `%i%` *{number}* index of separated file\n* `fileNameStartIndex` *{number=0}* separated files will receive generated name starting from this index\n* `writeFiles` *{boolean=true}* separated files should be written to the disk\n* `writeSourceMaps` *{boolean=true}* source maps of separated files should be written to the disk\n* `writeImport` *{boolean=true}* original css source should have import declaration for separated files\n* `quiet` *{boolean-false}* toggling console output\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitaliyr%2Fpostcss-esplit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitaliyr%2Fpostcss-esplit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitaliyr%2Fpostcss-esplit/lists"}