1.0.3 • Published 3 years ago
laravel-mix-zip v1.0.3
Laravel Mix Zip
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.