laravel-mix-zip

1.0.3 • Public • Published

Laravel Mix Zip

Latest Version on NPM Software License Total Downloads

This extension allows you to automatically zip files after mix finishes running.

Please make sure that you are using laravel-mix version 4.0 or higher.

Usage

You can install the package with npm or yarn:

npm install laravel-mix-zip --save-dev
yarn add laravel-mix-zip --dev

Then require the extension in your Mix configuration:

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

require('laravel-mix-zip');
...

Enable the extension by calling .zip() at the end of your Mix chain:

mix.sass('resources/sass/app.scss', 'public/css').zip(['app'], ['composer.json'], 'deploy.zip');

Zips the app folder and composer.json file to deploy.zip

License

The MIT License (MIT). Please see License File for more information.

Readme

Keywords

none

Package Sidebar

Install

npm i laravel-mix-zip

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

5.87 kB

Total Files

9

Last publish

Collaborators

  • xheinrich