{"id":28400165,"url":"https://github.com/marceickhoff/laravel-mix-clean-css","last_synced_at":"2026-04-17T05:03:41.862Z","repository":{"id":36430631,"uuid":"224808140","full_name":"marceickhoff/laravel-mix-clean-css","owner":"marceickhoff","description":"Extension for Laravel Mix that provides clean-css support.","archived":false,"fork":false,"pushed_at":"2023-03-02T07:14:49.000Z","size":2022,"stargazers_count":1,"open_issues_count":21,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T07:10:18.986Z","etag":null,"topics":["clean-css","laravel-mix","laravel-mix-extension","laravel-mix-plugin","npm-package","webpack"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/laravel-mix-clean-css","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/marceickhoff.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-29T08:16:31.000Z","updated_at":"2022-04-13T23:09:32.000Z","dependencies_parsed_at":"2024-10-20T11:16:09.802Z","dependency_job_id":null,"html_url":"https://github.com/marceickhoff/laravel-mix-clean-css","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"8bdcab6253ab163483e97aeef999d7c66458d206"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/marceickhoff/laravel-mix-clean-css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceickhoff%2Flaravel-mix-clean-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceickhoff%2Flaravel-mix-clean-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceickhoff%2Flaravel-mix-clean-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceickhoff%2Flaravel-mix-clean-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marceickhoff","download_url":"https://codeload.github.com/marceickhoff/laravel-mix-clean-css/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceickhoff%2Flaravel-mix-clean-css/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261424334,"owners_count":23156088,"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":["clean-css","laravel-mix","laravel-mix-extension","laravel-mix-plugin","npm-package","webpack"],"created_at":"2025-06-01T09:09:11.425Z","updated_at":"2026-04-17T05:03:41.826Z","avatar_url":"https://github.com/marceickhoff.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Mix clean-css\n[![Latest Version on NPM](https://img.shields.io/npm/v/laravel-mix-clean-css.svg?style=flat-square)](https://npmjs.com/package/laravel-mix-clean-css)\n[![npm](https://img.shields.io/npm/dt/laravel-mix-clean-css.svg?style=flat-square)](https://www.npmjs.com/package/laravel-mix-clean-css)\n[![Software License](https://img.shields.io/npm/l/laravel-mix-clean-css.svg?style=flat-square)](LICENSE)\n\nThis extension adds support for [clean-css](https://github.com/jakubpawlowicz/clean-css) to [Laravel Mix](https://github.com/JeffreyWay/laravel-mix) by using the [clean-css-loader](https://github.com/retyui/clean-css-loader).\n\n## Installation\n\n```\nnpm i -D laravel-mix-clean-css\n```\n\n## Usage\n\nRequire the extension inside your ``webpack.mix.js`` and add clean-css configurations like this:\n\n```javascript\nconst mix = require('laravel-mix');\n\nrequire('laravel-mix-clean-css');\n\nmix\n  .sass('src/app.scss', 'dist')\n  .sass('src/app.sass', 'dist')\n  .less('src/app.less', 'dist')\n  .stylus('src/app.styl', 'dist')\n\n  // Run clean-css on all stylesheets\n  .cleanCss({\n    level: 2,\n    format: mix.inProduction() ? false : 'beautify' // Beautify only in dev mode\n  })\n\n  // Run clean-css only on one specific stylesheet\n  .cleanCss({\n    // ...\n  }, 'src/app.scss')\n\n  // Run clean-css only on multiple specific stylesheets\n  .cleanCss({\n    // ...\n  }, [\n    'src/app.scss',\n    'src/app.sass',\n  ])\n```\n\nFor more information about clean-css configurations please refer to their [documentation](https://github.com/jakubpawlowicz/clean-css/blob/master/README.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarceickhoff%2Flaravel-mix-clean-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarceickhoff%2Flaravel-mix-clean-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarceickhoff%2Flaravel-mix-clean-css/lists"}