module.exports = function(config) {

  // If prod or stage, minify the html
  if (process.env.NODE_ENV !== 'development') {
    config.addTransform('minifyHtml', require('./eleventy/utilities/minifyHtml.js'));
  }

  // Add header credit to html
  config.addTransform('addHeaderCredit', require('./eleventy/utilities/addHeaderCredit.js'));

  // Filters
  config.addFilter('absoluteUrl', require('./eleventy/filters/absoluteUrl.js'));
  config.addFilter('cacheBust', require('./eleventy/filters/cacheBust.js'));

  return {
    dir: {
      input: 'src/site',
      output: 'dist'
    },
    htmlTemplateEngine: 'njk',
    markdownTemplateEngine: 'njk',
    dataTemplateEngine: 'njk'
  };

};

@@ -1,8 +1,259 @@
+import minifyHtml from './eleventy/utilities/minifyHtml.js';%0Aimport addHeaderCredit from './eleventy/utilities/addHeaderCredit.js';%0Aimport absoluteUrl from './eleventy/filters/absoluteUrl.js';%0Aimport cacheBust from './eleventy/filters/cacheBust.js';%0A%0A
 module.e
@@ -410,38 +410,8 @@
 l', 
-require('./eleventy/utilities/
 mini
@@ -416,21 +416,16 @@
 nifyHtml
-.js')
 );%0A  %7D%0A%0A
@@ -500,38 +500,8 @@
 t', 
-require('./eleventy/utilities/
 addH
@@ -511,21 +511,16 @@
 erCredit
-.js')
 );%0A%0A  //
@@ -566,36 +566,8 @@
 l', 
-require('./eleventy/filters/
 abso
@@ -573,21 +573,16 @@
 oluteUrl
-.js')
 );%0A  con
@@ -612,36 +612,8 @@
 t', 
-require('./eleventy/filters/
 cach
@@ -621,13 +621,8 @@
 Bust
-.js')
 );%0A%0A

Update 11ty config to use imports