# laravel-mix-hash-length

> Laravel Mix extension for globally adjusting hash length

Latest version **1.0.2** (published 2022-08-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install laravel-mix-hash-length
pnpm add laravel-mix-hash-length
yarn add laravel-mix-hash-length
bun add laravel-mix-hash-length
```

## 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.0.2 |
| Published | 2022-08-16 |
| First published | 2020-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Philipp Daun |
| Maintainers | daun |
| Keywords | laravel-mix, hash, versioning |

## Links

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

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-08-16
- 1.0.1 — 2022-07-29
- 1.0.0 — 2020-07-24

## README

# Laravel Mix Hash Length

[![Software License](https://img.shields.io/npm/l/laravel-mix-hash-length.svg)](LICENSE)
[![Latest Version on NPM](https://img.shields.io/npm/v/laravel-mix-hash-length.svg)](https://npmjs.com/package/laravel-mix-hash-length)

[Laravel Mix](https://github.com/JeffreyWay/laravel-mix) extension for globally adjusting hash length.

- Before: `main.js?c37511d80442057e`, `font.woff?1c0ecbb4c37511d8`
- After: `main.js?c375`, `font.woff?1c0e`

## Installation

```bash
npm install laravel-mix-hash-length
```

## Usage

Require the extension inside your `webpack.mix.js` and call `hashLength()` with the desired hash length as only argument.

```js
const mix = require('laravel-mix')
require('laravel-mix-hash-length')

mix.hashLength(4)  // main.js?c375
mix.hashLength(6)  // main.js?c3751c
mix.hashLength(10) // main.js?c37511d804
```

## Options

The extension takes a single argument: the desired hash length.

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