perf: install core libs directly rather than via external CDN

Increase performance in countries such as China.

Addresses the case where countries block or restrict CDNs, or when external CDNs go offline.

See https://github.com/wowchemy/wowchemy-hugo-modules/pull/2351
This commit is contained in:
George Cushen committed 2021-07-17 14:03:31 +01:00
1 parent a9189fd7c7
commit c750304197
25 files changed
+9847 -29

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Install node_modules manually so that users don't need to use Yarn.
cd ..
cp node_modules/jquery/dist/jquery.min.js wowchemy/assets/js/_vendor/
cp node_modules/instant.page/instantpage.js wowchemy/assets/js/_vendor/
cp -r 'node_modules/@fortawesome/fontawesome-free/webfonts' wowchemy/static/
cp -r 'node_modules/@fortawesome/fontawesome-free/css/all.min.css' wowchemy/assets/css/libs/fontawesome