# laravel-mix-clean

> A quick Laravel Mix extensions for file cleaning support.

Latest version **0.1.0** (published 2020-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install laravel-mix-clean
pnpm add laravel-mix-clean
yarn add laravel-mix-clean
bun add laravel-mix-clean
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-01-27 |
| First published | 2020-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Stephen Hartley |
| Maintainers | oppiansteve |
| Keywords | laravel, laravel mix, mix, clean |

## Links

- npm: https://www.npmjs.com/package/laravel-mix-clean
- Repository: https://github.com/kaldor/laravel-mix-clean
- Homepage: https://github.com/kaldor/laravel-mix-clean#readme
- Issues: https://github.com/kaldor/laravel-mix-clean/issues
- npm.io page: https://npm.io/package/laravel-mix-clean

## Recent versions

- 0.1.0 (latest) — 2020-01-27

## README

# Laravel Mix Clean
[![Latest Version on NPM](https://img.shields.io/npm/v/laravel-mix-clean.svg?style=flat-square)](https://npmjs.com/package/laravel-mix-clean)
[![npm](https://img.shields.io/npm/dt/laravel-mix-clean.svg?style=flat-square)](https://www.npmjs.com/package/laravel-mix-clean)
[![Software License](https://img.shields.io/npm/l/laravel-mix-clean.svg?style=flat-square)](LICENSE)

This extension adds support for [clean-webpack-plugin](https://github.com/johnagan/clean-webpack-plugin) to [Laravel Mix](https://github.com/JeffreyWay/laravel-mix).

## Installation

```
npm i -D laravel-mix-clean
```

## Usage

Require the extension inside your ``webpack.mix.js`` and add clean-css configurations like this:

```javascript
const mix = require('laravel-mix');

require('laravel-mix-clean');

mix
  .sass('src/app.scss', 'dist')
  .sass('src/app.sass', 'dist')
  .less('src/app.less', 'dist')
  .stylus('src/app.styl', 'dist')

  // Run default output cleaning
  .clean()

  // Run clean with
  .clean({
    // ...options
  })
```

For more information about clean-webpack-plugin configurations please refer to their [documentation](https://github.com/johnagan/
clean-webpack-plugin/blob/master/README.md).

---
_Source: https://npm.io/package/laravel-mix-clean · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
