laravel-mix-clean

0.1.0 • Public • Published

Laravel Mix Clean

Latest Version on NPM npm Software License

This extension adds support for clean-webpack-plugin to 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:

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).

Package Sidebar

Install

npm i laravel-mix-clean

Weekly Downloads

2,888

Version

0.1.0

License

MIT

Unpacked Size

3.64 kB

Total Files

4

Last publish

Collaborators

  • oppiansteve