laravel-mix-hash-length

1.0.2 • Public • Published

Laravel Mix Hash Length

Software License Latest Version on NPM

Laravel Mix extension for globally adjusting hash length.

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

Installation

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.

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    2
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i laravel-mix-hash-length

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

5.11 kB

Total Files

4

Last publish

Collaborators

  • daun