{"id":20272216,"url":"https://github.com/panthevm/cleancss","last_synced_at":"2025-04-11T04:42:00.256Z","repository":{"id":54984898,"uuid":"328226837","full_name":"Panthevm/cleancss","owner":"Panthevm","description":"is a tool that removes unused CSS stylesheets","archived":false,"fork":false,"pushed_at":"2021-04-09T18:15:51.000Z","size":6169,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T04:41:58.107Z","etag":null,"topics":["clojure","clojurescript","css"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/Panthevm.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":"2021-01-09T19:06:00.000Z","updated_at":"2022-08-26T13:26:35.000Z","dependencies_parsed_at":"2022-08-14T08:10:40.336Z","dependency_job_id":null,"html_url":"https://github.com/Panthevm/cleancss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Panthevm%2Fcleancss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Panthevm%2Fcleancss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Panthevm%2Fcleancss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Panthevm%2Fcleancss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Panthevm","download_url":"https://codeload.github.com/Panthevm/cleancss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345281,"owners_count":21088242,"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":["clojure","clojurescript","css"],"created_at":"2024-11-14T12:42:31.633Z","updated_at":"2025-04-11T04:42:00.232Z","avatar_url":"https://github.com/Panthevm.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/Panthevm/cleancss\"\u003e\u003cimg src=\"https://i.ibb.co/HrFyQQ8/cleancss.png\" alt=\"logo\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n# CleanCSS\n\n[![Clojars Project](https://img.shields.io/clojars/v/cleancss.svg)](https://clojars.org/cleancss)\n\nCleanCSS - Clojure/ClojureScript tool that removes unused CSS\n\n## Quickstart\n\n1) Add a dependency\n\n```edn\ncleancss/cleancss {:mvn/version \"2.0.0\"}\n```\n\n2) Call the `cleancss.watcher/create` at the start of the app.\n\n```clojure\n(defonce develop\n  (cleancss.watcher/create\n   {;; A list of source directories to be watched\n    :watch-dirs [\"src\"]\n\n    :build\n    {;; Directory with css source files\n     :import {:directory \"resources/public/css/src\"} \n     ;; The directory where the cached data will be stored\n     :cache  {:directory \"resources/public/css/out\"} \n     ;; Output file\n     :export {:file \"resources/public/css/clean.css\"}}}))\n\n\n```\n\n3) Mark class names and identifiers with literals\n\n```clojure\n[:div {:id #i\"id-foo\"\n       :class [#c\"class-bar\"\n               #c\"class-baz\"]}\n \"Hello\"]\n```\n[Example (Figwheel)](https://github.com/Panthevm/cleancss/tree/main/example)\n# Configuration\n\n#### `:default` - manually specifying selectors (optional)\n\n```clojure\n(cleancss.watcher/create\n {;; ...\n  :default\n  {:types       #{\"*\" \"html\" \"body\" \"div\"}\n   :classes     #{\"container\"}\n   :pseudos     #{\":hover\"}\n   :functions   #{\":lang\"}\n   :identifiers #{\"id\"}\n   :attributes  #{[\"type\" \"button\"]\n                  [\"href\" \"#\"]\n                  [\"lang\"]}}\n  ;; ...\n  })\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanthevm%2Fcleancss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanthevm%2Fcleancss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanthevm%2Fcleancss/lists"}