Replace FontAwesome icons JavaScript with module
The BuildJS process used by Hugo can't tree-shake the `index.js` file currently used. Replace it with a tree-shakable `index.mjs` file to reduce page size.
This commit is contained in:
parent
48f7c455ab
commit
5d4a2d8242
3 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ import {
|
|||
faUserAstronaut,
|
||||
faVideo,
|
||||
faW,
|
||||
} from "./pro-duotone-svg-icons";
|
||||
} from "./pro-duotone-svg-icons/index.mjs";
|
||||
import {
|
||||
faDiscord,
|
||||
faGithub,
|
||||
|
|
Binary file not shown.
BIN
assets/scripts/pro-duotone-svg-icons/index.mjs
Normal file
BIN
assets/scripts/pro-duotone-svg-icons/index.mjs
Normal file
Binary file not shown.
Loading…
Reference in a new issue