We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc1eb34 commit 62449bdCopy full SHA for 62449bd
1 file changed
README.md
@@ -20,16 +20,21 @@ Into...
20
- npm: `npm install --save-dev eleventy-auto-cache-buster`
21
2. Enable the plugin
22
```js
23
- // .eleventy.js
+ // .eleventy.js (ESM)
24
import eleventyAutoCacheBuster from "eleventy-auto-cache-buster";
25
26
- module.exports = function (eleventyConfig) {
+ export default function (eleventyConfig) {
27
eleventyConfig.addPlugin(eleventyAutoCacheBuster);
28
// ...
29
}
30
31
- // Alternatively, you can use CJS
+ // .eleventy.js (CommonJS)
32
const eleventyAutoCacheBuster = require("eleventy-auto-cache-buster").default;
33
+
34
+ module.exports = function (eleventyConfig) {
35
+ eleventyConfig.addPlugin(eleventyAutoCacheBuster);
36
+ // ...
37
+ }
38
```
39
40
3. That's it! No further changes are required.
0 commit comments