Files
HugoBlox-kit/scripts/copy_libraries.sh
T
George Cushen c750304197 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
2021-07-17 14:03:31 +01:00

11 lines
422 B
Bash

#!/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