From befa4e932e3ee4879ceb174e6d7734cd0c0e29d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Alby?= Date: Wed, 31 Jul 2019 12:39:34 +0200 Subject: [PATCH] Merge pull request #2027 from overleaf/ta-build-main-recurly-2 add main-recurly.js to Gruntfile GitOrigin-RevId: 5527f97394efe6ca3d8c206276c46993547c8edc --- services/web/Gruntfile.js | 6 +++++- services/web/app/views/layout.pug | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/services/web/Gruntfile.js b/services/web/Gruntfile.js index 17d910fef2..43e97850d5 100644 --- a/services/web/Gruntfile.js +++ b/services/web/Gruntfile.js @@ -34,7 +34,8 @@ module.exports = function(grunt) { mathjax: '/js/libs/mathjax/MathJax.js?config=TeX-AMS_HTML', 'pdfjs-dist/build/pdf': `libs/${PackageVersions.lib('pdfjs')}/pdf`, ace: `${PackageVersions.lib('ace')}`, - fineuploader: `libs/${PackageVersions.lib('fineuploader')}` + fineuploader: `libs/${PackageVersions.lib('fineuploader')}`, + recurly: 'https://js.recurly.com/v4/recurly' }, skipDirOptimize: true, @@ -55,6 +56,9 @@ module.exports = function(grunt) { }, { name: 'ace/worker-latex' + }, + { + name: 'main-recurly' } ] } diff --git a/services/web/app/views/layout.pug b/services/web/app/views/layout.pug index 8a7cd636a6..f4facba041 100644 --- a/services/web/app/views/layout.pug +++ b/services/web/app/views/layout.pug @@ -126,7 +126,7 @@ html( "fineuploader": "libs/#{lib('fineuploader')}", "main": "#{buildJsPath('main.js', {hashedPath:settings.useMinifiedJs, removeExtension:true})}", "libraries": "#{buildJsPath('libraries.js', {hashedPath:settings.useMinifiedJs, removeExtension:true})}", - "recurly": "https://js.recurly.com/v4/recurly.js" + "recurly": "https://js.recurly.com/v4/recurly" }, "config":{ "moment":{