Jigsaw

Laravel Mix plugin for Jigsaw build tasks.
latest v1.3.0 - released
log1x
514 downloads last week
MIT license
12 versions
laravel-mix-plugin

Jigsaw plugin for Laravel Mix

MIT License Latest Stable Version Total Downloads

laravel-mix-jigsaw is a Laravel Mix plugin containing the build tasks for the Jigsaw static site generator.

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

mix.jigsaw()
   .js('source/_assets/js/main.js', 'js')
   .sass('source/_assets/sass/main.scss', 'css');

Installation

npm install laravel-mix-jigsaw --save-dev

Usage

Require the module in your webpack.mix.js.

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

Enable the build tasks by calling .jigsaw() anywhere in your Mix build chain.

mix.js('source/_assets/js/main.js', 'js')
   .sass('source/_assets/sass/main.scss', 'css')
   .jigsaw();

You can pass the plugin an object containing custom options if necessary.

mix.jigsaw({
    browserSync: true,
    watch: [
        'config.php',
        'source/**/*.md',
        'source/**/*.php',
        'source/**/*.scss',
        '!source/**/cache/*',
    ],
});

Credits

Huge thanks to Brandon for creating the initial package!

License

Laravel Mix Jigsaw is provided under the MIT License.