Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 488 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 488 Bytes

nhref

add hash to html script tag src attribute, in order to avoid brower cache.

start

npm install -g nhref

usage

nhref [options] [directories|files]

options

  • -p, --project (default current directory)
    specify the root directory of the project. when resolve src like /d1/a.js, nhref will find file from the root directory.

  • -d, --dest

  • -t, --type (resolve type)
    browser or regexp

issue

notice

bin/nhref: change CRLF to LF before publish on windows