const timeago = require('timeago.js')
require('timeago.js/src/timeago.locales.js')
const $ = require('jquery')

$(function () {
  const $times = $('time.relative')

  $times.each((i, e) => {
    const sevenDays = 60 * 60 * 24 * 7 * 1000
    const datetime = new Date($(e).attr('datetime'))
    const timeagoInstance = timeago()

    if ((new Date() - datetime) < sevenDays) {
      e.textContent = timeagoInstance.format(datetime, 'de')
    }
  })
})

@@ -32,34 +32,13 @@
 o.js
-')%0Arequire('timeago.js/src
+/dist
 /tim
@@ -46,15 +46,11 @@
 ago.
-locales
+min
 .js'

Use minified version of timeago