1.2.1 • Published 2 years ago

laravel-mix-ziggy-watch v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Laravel Mix Ziggy Watch

Laravel Mix extension which adds support for building your Ziggy routes file during mixing as well as automatic rebuilding when in --watch mode.

Installation

npm i laravel-mix-ziggy-watch

or

yarn add laravel-mix-ziggy-watch

Usage

const mix = require("laravel-mix");
require("laravel-mix-ziggy-watch");

mix.js("resources/js/app.js", "public/js").ziggyWatch({});

Configuration

You can pass config options to the ziggyWatch method in your mix file.

nametyperequireddescriptiondefault
watchstring/array/booleannoPaths to files, dirs to be watched recursively, or glob patterns. false to disable watch"routes/*/.php"
outputstringnoThe output path of your generated routes file, relative to root dir"resources/js/ziggy.js"
productionbooleannoEnable build/watch in production modetrue
developmentbooleannoEnable build/watch in development modetrue