File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,12 +5,14 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and 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
Original file line number Diff line number Diff 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
5757Let'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
6361const fs = require (" fs" );
You can’t perform that action at this time.
0 commit comments