JSPM

laravel-mix-herd

1.4.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q48683F
  • License MIT

Laravel Mix v6 extension that makes HMR work with Laravel Herd certificates

Package Exports

  • laravel-mix-herd
  • laravel-mix-herd/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (laravel-mix-herd) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

laravel-mix-herd

Laravel Mix v6 extension that makes HMR work with Laravel Herd certificates. Froked from andreiio/laravel-mix-valet to use Herd instead Valet only.

Note: This extension assumes you already have your project linked and secured in Herd.

Installation

Install the extension:

npm install laravel-mix-herd --save-dev

Next require the extension in your webpack.mix.js and call herd():

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

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

Alternatively, you can pass a config object instead, which will be merged with the defaults below:

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

mix.js('resources/js/app.js', 'public/js')
    .herd({
        host: 'othersite.test',
        port: 12345,
    });

Options

Option Default
host Hostname from APP_URL
port 8080
https true