Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

ndberg/laravel-mix-dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dump for Laravel Mix

Software License Latest Version on NPM npm

Adds a dump() method to laravel-mix, to dump the webpack config and the Mix object.

let mix = require('laravel-mix');
require('laravel-mix-dump');

// ...

mix.js('resources/js/app.js', 'public/js')
   .sass('resources/sass/app.scss', 'public/css')
   .dump();

Installation

Before you get started, make sure you're using laravel-mix version 4 or higher.

You can install the package with yarn or npm:

yarn add laravel-mix-dump
npm install laravel-mix-dump

Then install the extension by requiring the module in your Mix configuration.

let mix = require('laravel-mix');
require('laravel-mix-dump');

// ...

dump can then be enabled by calling .dump() in your Mix chain.

mix.js('resources/js/app.js', 'public/js')
   .sass('resources/sass/app.scss', 'public/css')
   .dump();

Custom options can be passed when calling dump if necessary.

mix.js('resources/js/app.js', 'public/js')
   .sass('resources/sass/app.scss', 'public/css')
   .dump({depth:2, die: true});

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

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

About

Dump for Laravel-Mix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published