Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

laravel-mix-blade-reload

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-mix-blade-reload

Laravel Mix extension to auto-reload browser when you change the blade views.

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Laravel Mix Blade Reload

Laravel Mix extension to auto-reload browser when you change the blade views.

  • Installation
  • Options
  • Changelog

Installation

Install the extension:

npm install laravel-mix-blade-reload

Or if you prefer yarn:

yarn add laravel-mix-blade-reload

Next require the extension inside your Laravel Mix config and call bladeReload() in your pipeline:

// webpack.mix.js
const mix = require('laravel-mix');
require('laravel-mix-blade-reload');

mix.js('resources/js/app.js', 'public/js')
    .bladeReload();
Note

Works only when running HMR - Hot Module Replacement script (npm run hot).

Options

Default options

If nothing is passed to the extension inside your Laravel Mix config, the following options will be used:

{
    path: 'resources/views/**/*.blade.php',
    debug: false
}
Option details
  • path (string or array of strings). Path to files, directories to be watched recursively, or glob patterns.
  • debug (boolean). Whenever to log extension event messages to the console.

Changelog

New in version 2.x
  • Now supports laravel-mix version 6
New in version 1.x
  • Rewrited into TypeScript
  • Option paths was renamed to path

Keywords

FAQs

Package last updated on 16 Oct 2021

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc