diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index 33ef38a0c..10d0b2a50 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -1,3 +1,5 @@ +window.GOVUKFrontend.initAll(); + $(() => $("time.timeago").timeago()); $(() => GOVUK.stickAtTopWhenScrolling.init()); diff --git a/gulpfile.js b/gulpfile.js index 0dd9e5135..9b790fc52 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -114,7 +114,8 @@ const javascripts = () => { paths.npm + 'query-command-supported/dist/queryCommandSupported.min.js', paths.npm + 'diff-dom/diffDOM.js', paths.npm + 'timeago/jquery.timeago.js', - paths.npm + 'textarea-caret/index.js' + paths.npm + 'textarea-caret/index.js', + paths.govuk_frontend + 'all.js' ])) .pipe(plugins.uglify()) .pipe(plugins.concat('all.js'))