Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
/ laravel-mix-valet Public archive

Laravel Mix v6 extension to improve Valet https support

License

Notifications You must be signed in to change notification settings

andreiio/laravel-mix-valet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-mix-valet

Laravel Mix v6 extension that makes HMR work with Laravel Valet certificates.

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

Installation

Install the extension:

npm install laravel-mix-valet --save-dev

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

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

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

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

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

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

Options

Option Default
host Hostname from APP_URL
port 8080
https true