0.1.1 • Published 5 years ago

@ryanburnette/asset-hash v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

asset-hash

repo npm

An asset hash script for static websites.

  • works in .css and .js files
  • find the hash of a given file
  • rename the file with the hash
  • gz the file in place for web servers that support precompressed assets
  • update all the references to the file
  • requires that all references be made from /, no relative references, TODO improve
  • works in place, so make a copy before calling if that matters

Install

npm install -g @ryanburnette/asset-hash

Use

assethash public/

Warning

I reference all my assets relative to root. This library expects that and will break if you aren't doing the same.

0.1.1

5 years ago

0.1.0

5 years ago