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
- Host: GitHub
- URL: https://github.com/shsharkar/lmvh
- Owner: SHSharkar
- License: mit
- Created: 2020-02-24T18:10:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-24T19:03:39.000Z (over 5 years ago)
- Last Synced: 2025-03-17T07:22:28.020Z (7 months ago)
- Topics: laravel, laravel-mix, laravel-mix-version-hash, mix, version-hash
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/lmvh
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 |