# laravel-mix-valet

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

Latest version **1.4.0** (published 2022-10-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install laravel-mix-valet
pnpm add laravel-mix-valet
yarn add laravel-mix-valet
bun add laravel-mix-valet
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2022-10-01 |
| First published | 2021-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Andrei Ioniță |
| Maintainers | andreiio |
| Keywords | laravel, mix, plugin, valet, https |

## Links

- npm: https://www.npmjs.com/package/laravel-mix-valet
- Repository: https://github.com/andreiio/laravel-mix-valet
- Homepage: https://github.com/andreiio/laravel-mix-valet#readme
- Issues: https://github.com/andreiio/laravel-mix-valet/issues
- npm.io page: https://npm.io/package/laravel-mix-valet

## Recent versions

- 1.4.0 (latest) — 2022-10-01
- 1.3.0 — 2022-02-05
- 1.2.0 — 2022-01-20
- 1.1.1 — 2021-08-23
- 1.1.0 — 2021-07-09
- 1.0.2 — 2021-07-09
- 1.0.1 — 2021-03-18
- 1.0.0 — 2021-02-02

## README

# laravel-mix-valet
Laravel Mix v6 extension that makes HMR work with [Laravel Valet](https://laravel.com/docs/8.x/valet) certificates.

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

## Installation

Install the extension:

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

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

```js
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:

```js
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                    |

---
_Source: https://npm.io/package/laravel-mix-valet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
