//const cacheBuster = require('@mightyplow/eleventy-plugin-cache-buster');

module.exports = function(config) {

  // Add a date formatter filter to Nunjucks
  config.addFilter("dateDisplay", require("./filters/dates.js") );
  config.addFilter("timestamp", require("./filters/timestamp.js") );
  config.addFilter("squash", require("./filters/squash.js") );
  
  //config.addPassthroughCopy("src/img", "img");
  //add versioning to assets
  //const cacheBusterOptions = {};
  //config.addPlugin(cacheBuster(cacheBusterOptions));

  return {
    dir: {
      input: "src/site",
      output: "dist",
      includes: "_includes",
      data: "_data"
    },
    templateFormats : ["njk", "md"],
    htmlTemplateEngine : "njk",
    markdownTemplateEngine : "njk",
    passthroughFileCopy: true
  };

};

@@ -1,26 +1,24 @@
-//
 const cacheBuster = requ
@@ -400,16 +400,19 @@
 %22img%22);%0A
+  %0A
   //add 
@@ -434,18 +434,16 @@
 ssets%0A  
-//
 const ca
@@ -466,15 +466,44 @@
  = %7B
+%0A    outputDirectory: 'dist'%0A  
 %7D;%0A  
-//
 conf

add cachebuster plugin to eleventy