Socket
Book a DemoInstallSign in
Socket

laravel-mix-ziggy-watch

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-mix-ziggy-watch

Laravel Mix extension that automatically compiles your Ziggy routes. Features built in watch mode and user configuration.

1.2.1
latest
Source
npmnpm
Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

laravel

FAQs

Package last updated on 03 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.