An open API service indexing awesome lists of open source software.

https://github.com/shsharkar/lmvh

Laravel Mix Version Hash
https://github.com/shsharkar/lmvh

laravel laravel-mix laravel-mix-version-hash mix version-hash

Last synced: 6 months ago
JSON representation

Laravel Mix Version Hash

Awesome Lists containing this project

README

          

Laravel Mix Version Hash

Auto append hash to file instead of using virtual one [Read More](https://github.com/JeffreyWay/laravel-mix/issues/1022)

## Installation

```bash
npm install lmvh --save
```

## Usage

```js
require('lmvh');

mix.versionHash();
```

- for removing old files use [Clean for WebPack](https://github.com/johnagan/clean-webpack-plugin)

## Options

| option | type | default | description |
|-----------|--------|---------|---------------------------------------------------------------------------------------------------|
| length | int | `32` | the hash string length |
| delimiter | string | `'-'` | the delimiter for filename and hash,
note that anything other than `. - _` will be removed |