We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d1d3c1 commit e7ad99bCopy full SHA for e7ad99b
1 file changed
README.md
@@ -56,3 +56,21 @@ module.exports = {
56
}
57
58
```
59
+
60
+### Public API
61
62
+The `VERSION` and `COMMITHASH` are also exposed through a public API.
63
64
+Example:
65
66
+```javascript
67
+var gitRevisionPlugin = new GitRevisionPlugin()
68
+module.exports = {
69
+ plugins: [
70
+ new DefinePlugin({
71
+ 'VERSION': JSON.stringify(gitRevisionPlugin.version()),
72
+ 'COMMITHASH': JSON.stringify(gitRevisionPlugin.commithash()),
73
+ })
74
+ ]
75
+}
76
+```
0 commit comments