Skip to content

Commit da781b1

Browse files
committed
chore(changelog): v1.0.0 notes
1 parent 2ccdefc commit da781b1

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## Unreleased
9-
108
<!--
9+
## Unreleased -->
10+
1111
## [1.0.0](https://github.com/metonym/posthtml-hash/releases/tag/v1.0.0) - 2020-05-09
1212

13-
- Replace `jest` with Node.js native `assert` (removes ~250k sub-dependencies) -->
13+
- Refactor API to only hash files with `[hash]` in the file name (hash length is adjustable with the pattern `[hash:${length}]`)
14+
15+
- Replace `jest` with Node.js native `assert` (removes ~250k sub-dependencies)
1416

1517
## [0.3.0](https://github.com/metonym/posthtml-hash/releases/tag/v0.3.0) - 2020-05-04
1618

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,10 @@ The plugin will only attempt to hash files with `[hash]` in the name.
5252

5353
### Node.js
5454

55-
The recommended usage is to hash static assets in your post-build process using Node.js.
55+
The recommended usage of this plugin is to incorporate it in your post-build process.
5656

5757
Let's say that you use Rollup to bundle and minify your CSS and JavaScript. The template `index.html` is copied to the `build` folder.
5858

59-
A post-build script could look like:
60-
6159
```js
6260
// postbuild.js
6361
const fs = require("fs");

0 commit comments

Comments
 (0)