https://github.com/oreshinya/simple-rev
Static asset revisioning.
https://github.com/oreshinya/simple-rev
asset rev revision static
Last synced: 2 months ago
JSON representation
Static asset revisioning.
- Host: GitHub
- URL: https://github.com/oreshinya/simple-rev
- Owner: oreshinya
- License: mit
- Created: 2019-07-21T14:49:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-20T11:25:27.000Z (over 2 years ago)
- Last Synced: 2024-04-14T07:43:34.175Z (about 1 year ago)
- Topics: asset, rev, revision, static
- Language: JavaScript
- Homepage:
- Size: 131 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-rev
[](https://badge.fury.io/js/simple-rev)
Static asset revisioning.
## Installation
Only NPM scripts:
```
$ npm i simple-rev
```Or globally:
```
$ npm i -g simple-rev
```## Usage
```
$ simple-rev
```It does the following:
- Create manifest
- Rename files with content hash
- Copy file from input directory to output directory
- Replace URLs with hashed version in files## LICENSE
MIT