{"id":16185480,"url":"https://github.com/patrickhulce/nukecss-webpack","last_synced_at":"2025-03-19T03:30:25.050Z","repository":{"id":65465992,"uuid":"82587823","full_name":"patrickhulce/nukecss-webpack","owner":"patrickhulce","description":"Eliminates unused CSS from your webpack bundle.","archived":false,"fork":false,"pushed_at":"2019-02-12T02:32:36.000Z","size":183,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-19T00:51:34.418Z","etag":null,"topics":["css","nukecss","purifycss","remove","uncss","unused","webpack"],"latest_commit_sha":null,"homepage":"","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/patrickhulce.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":"2017-02-20T18:12:23.000Z","updated_at":"2020-03-21T13:43:51.000Z","dependencies_parsed_at":"2023-01-25T08:45:43.363Z","dependency_job_id":null,"html_url":"https://github.com/patrickhulce/nukecss-webpack","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickhulce%2Fnukecss-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickhulce%2Fnukecss-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickhulce%2Fnukecss-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickhulce%2Fnukecss-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickhulce","download_url":"https://codeload.github.com/patrickhulce/nukecss-webpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244350560,"owners_count":20439281,"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":["css","nukecss","purifycss","remove","uncss","unused","webpack"],"created_at":"2024-10-10T07:14:24.812Z","updated_at":"2025-03-19T03:30:24.675Z","avatar_url":"https://github.com/patrickhulce.png","language":"JavaScript","readme":"# nukecss-webpack\n\n[![NPM Package](https://badge.fury.io/js/nukecss-webpack.svg)](https://www.npmjs.com/package/nukecss-webpack)\n[![Build Status](https://travis-ci.org/patrickhulce/nukecss-webpack.svg?branch=master)](https://travis-ci.org/patrickhulce/nukecss-webpack)\n[![Coverage Status](https://coveralls.io/repos/github/patrickhulce/nukecss-webpack/badge.svg?branch=master)](https://coveralls.io/github/patrickhulce/nukecss-webpack?branch=master)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![Dependencies](https://david-dm.org/patrickhulce/nukecss-webpack.svg)](https://david-dm.org/patrickhulce/nukecss-webpack)\n\nUses [nukecss](https://github.com/patrickhulce/nukecss) to eliminate unused css from your webpack bundle. Support for the `extract-text-webpack-plugin` and for `style-loader`.\n\n````bash\n# for webpack 4 and mini-css-extract-plugin\nnpm install --save-dev nukecss-webpack\n# for webpack 2/3 and extract-text-webpack-plugin\nnpm install --save-dev nukecss-webpack@^1.4.0\n```\n\n\n## Usage\n\n#### Install nukecss-webpack\n`npm install --save-dev nukecss-webpack`\n\n#### Setup Your Webpack Configuration\n```js\nconst NukeCssPlugin = require('nukecss-webpack')\n\nmodule.exports = {\n  entry: 'my-entry.js',\n  output: {\n    // ...\n  },\n  plugins: [\n    // ...\n    new NukeCssPlugin()\n  ],\n}\n````\n\n#### Save Bytes\n\n**Before**\n\n```\nout.css   146 kB       0  [emitted]  main\n```\n\n**After**\n\n```\nout.css  6.82 kB       0  [emitted]  main\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickhulce%2Fnukecss-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickhulce%2Fnukecss-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickhulce%2Fnukecss-webpack/lists"}