You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`posthtml-hash` is a [PostHTML](https://github.com/posthtml/posthtml) plugin for hashing static CSS/JS assets to enable caching. [hasha](https://www.npmjs.com/package/hasha) is used to generate hashes.
8
6
@@ -59,13 +57,22 @@ posthtml()
59
57
/**
60
58
* Relative path to processed HTML file
61
59
*/
62
-
path:"public",
60
+
path:"public",// default: ""
63
61
64
62
/**
65
63
* Length of hash
66
-
* Default is 20
67
64
*/
68
-
hashLength:10,
65
+
hashLength:10, // default: 20
66
+
67
+
/**
68
+
* Hash CSS files
69
+
*/
70
+
css:true, // default: true
71
+
72
+
/**
73
+
* Hash JS files
74
+
*/
75
+
js:true, // default: true
69
76
})
70
77
)
71
78
.process(html)
@@ -86,7 +93,3 @@ See the [PostHTML Guidelines](https://github.com/posthtml/posthtml/tree/master/d
0 commit comments