{"id":13671362,"url":"https://github.com/lin-xi/webpack-css-treeshaking-plugin","last_synced_at":"2025-08-17T03:41:42.923Z","repository":{"id":57112273,"uuid":"99358684","full_name":"lin-xi/webpack-css-treeshaking-plugin","owner":"lin-xi","description":"webpack css treeshaking plugin","archived":false,"fork":false,"pushed_at":"2019-09-11T15:43:36.000Z","size":691,"stargazers_count":84,"open_issues_count":3,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-08T16:02:29.387Z","etag":null,"topics":["css-tree-shaking","tree-shaking","webpack-plugin","weppack"],"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/lin-xi.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}},"created_at":"2017-08-04T15:56:40.000Z","updated_at":"2025-03-03T12:15:39.000Z","dependencies_parsed_at":"2022-08-21T00:01:06.203Z","dependency_job_id":null,"html_url":"https://github.com/lin-xi/webpack-css-treeshaking-plugin","commit_stats":null,"previous_names":["lin-xi/css-treeshaking-loader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lin-xi/webpack-css-treeshaking-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lin-xi%2Fwebpack-css-treeshaking-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lin-xi%2Fwebpack-css-treeshaking-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lin-xi%2Fwebpack-css-treeshaking-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lin-xi%2Fwebpack-css-treeshaking-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lin-xi","download_url":"https://codeload.github.com/lin-xi/webpack-css-treeshaking-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lin-xi%2Fwebpack-css-treeshaking-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270803531,"owners_count":24648688,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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":["css-tree-shaking","tree-shaking","webpack-plugin","weppack"],"created_at":"2024-08-02T09:01:07.540Z","updated_at":"2025-08-17T03:41:42.892Z","avatar_url":"https://github.com/lin-xi.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp style=\"text-align: center\"\u003e\n  \u003cimg src=\"css-tree-shaking.png\"/\u003e\n\u003c/p\u003e\n\n# webpack-css-treeshaking-plugin\n\n[![Build Status](https://travis-ci.org/lin-xi/webpack-css-treeshaking-plugin.svg?branch=master)](https://travis-ci.org/lin-xi/webpack-css-treeshaking-plugin)\n[![Coverage Status](https://coveralls.io/repos/github/lin-xi/webpack-css-treeshaking-plugin/badge.svg?branch=master)](https://coveralls.io/github/lin-xi/webpack-css-treeshaking-plugin?branch=master)\n[![npm package](https://img.shields.io/npm/v/webpack-css-treeshaking-plugin.svg)](https://www.npmjs.org/package/webpack-css-treeshaking-plugin)\n[![NPM downloads](http://img.shields.io/npm/dm/webpack-css-treeshaking-plugin.svg)](https://npmjs.org/package/webpack-css-treeshaking-plugin)\n\na webpack plugin to shake unused css code\n\n-------\n\n## how to use\n\n```javascript\nnpm install webpack-css-treeshaking-plugin -D\n```\n\nconfig it in your webpack configuration file, it depends on extracting styles to a file, so please use ExtractTextPlugin first. \n\n```javascript\nvar ExtractTextPlugin = require('extract-text-webpack-plugin')\nconst CssTreeShakingPlugin = require(\"webpack-css-treeshaking-plugin\")\n\nmodule.exports = {\n  plugins: [\n    new CssTreeShakingPlugin({\n      remove: false,\n      ignore: ['state-\\d']\n    }),\n    new ExtractTextPlugin({\n      filename: 'build/style.css'\n    })\n  ]\n};\n```\n\n## configuration\n \n\nproperty | type | default | discription\n-------- | ---- | ------- | -----------\nremove | boolean | false | whether to remove unused css\nignore | array | [] | items can be a string or a regexp\n\n\n## architechture\n\u003cimg src=\"architechture.png\"\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flin-xi%2Fwebpack-css-treeshaking-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flin-xi%2Fwebpack-css-treeshaking-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flin-xi%2Fwebpack-css-treeshaking-plugin/lists"}