diff options
| -rw-r--r-- | _config.yml | 2 | ||||
| -rw-r--r-- | build/generate-sri.js | 4 | ||||
| -rw-r--r-- | site/_includes/scripts.html | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/_config.yml b/_config.yml index 6bb6c1a25..fdf8d47cd 100644 --- a/_config.yml +++ b/_config.yml @@ -53,6 +53,8 @@ cdn: css_hash: "sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" js: "https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" js_hash: "sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" + js_bundle: "https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.bundle.min.js" + js_bundle_hash: "sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" jquery: "https://code.jquery.com/jquery-3.3.1.slim.min.js" jquery_hash: "sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" popper: "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" diff --git a/build/generate-sri.js b/build/generate-sri.js index 8d0fedc4a..b3331001a 100644 --- a/build/generate-sri.js +++ b/build/generate-sri.js @@ -36,8 +36,8 @@ const files = [ configPropertyName: 'jquery_hash' }, { - file: 'site/docs/4.1/assets/js/vendor/popper.min.js', - configPropertyName: 'popper_hash' + file: 'dist/js/bootstrap.bundle.min.js', + configPropertyName: 'js_bundle_hash' } ] diff --git a/site/_includes/scripts.html b/site/_includes/scripts.html index 346f97b00..2bd5ec8bc 100644 --- a/site/_includes/scripts.html +++ b/site/_includes/scripts.html @@ -2,7 +2,7 @@ <script>window.jQuery || document.write('<script src="{{ site.baseurl }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script> {%- if site.github -%} - <script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.min.js" integrity="{{ site.cdn.js_hash }}" crossorigin="anonymous"></script> + <script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.min.js" integrity="{{ site.cdn.js_bundle_hash }}" crossorigin="anonymous"></script> {%- else -%} <script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.js"></script> {%- endif -%} |
