diff options
author | Kristóf Marussy <kristof@marussy.com> | 2024-03-18 17:21:33 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2024-03-18 17:21:33 +0100 |
commit | df79f7da8adf17f99890bcb93c6f7e20de674dfa (patch) | |
tree | bb1dc0fef6130b509c8e8679f0bed83e16d3952d | |
parent | chore(deps): bump dependencies (diff) | |
download | blog-df79f7da8adf17f99890bcb93c6f7e20de674dfa.tar.gz blog-df79f7da8adf17f99890bcb93c6f7e20de674dfa.tar.zst blog-df79f7da8adf17f99890bcb93c6f7e20de674dfa.zip |
Do not embed assets with url-loader
No need to embed fonts that we aren't going to use into CSS.
See
https://github.com/johnnyreilly/blog.johnnyreilly.com/pull/397
https://github.com/facebook/docusaurus/issues/5493
https://v4.webpack.js.org/loaders/url-loader/#limit
-rw-r--r-- | package.json | 5 | ||||
-rw-r--r-- | yarn.lock | 15 |
2 files changed, 17 insertions, 3 deletions
diff --git a/package.json b/package.json index b9c45dc..b2c628b 100644 --- a/package.json +++ b/package.json | |||
@@ -14,13 +14,13 @@ | |||
14 | "private": true, | 14 | "private": true, |
15 | "scripts": { | 15 | "scripts": { |
16 | "docusaurus": "docusaurus", | 16 | "docusaurus": "docusaurus", |
17 | "build": "docusaurus build", | 17 | "build": "cross-env WEBPACK_URL_LOADER_LIMIT=0 docusaurus build", |
18 | "swizzle": "docusaurus swizzle", | 18 | "swizzle": "docusaurus swizzle", |
19 | "clear": "docusaurus clear", | 19 | "clear": "docusaurus clear", |
20 | "serve": "docusaurus serve -p 1313 --no-open", | 20 | "serve": "docusaurus serve -p 1313 --no-open", |
21 | "write-translations": "docusaurus write-translations", | 21 | "write-translations": "docusaurus write-translations", |
22 | "write-heading-ids": "docusaurus write-heading-ids", | 22 | "write-heading-ids": "docusaurus write-heading-ids", |
23 | "dev": "docusaurus start -p 1313 --no-open", | 23 | "dev": "cross-env WEBPACK_URL_LOADER_LIMIT=0 docusaurus start -p 1313 --no-open", |
24 | "format": "prettier --write .", | 24 | "format": "prettier --write .", |
25 | "typecheck": "tsc --noEmit" | 25 | "typecheck": "tsc --noEmit" |
26 | }, | 26 | }, |
@@ -53,6 +53,7 @@ | |||
53 | "@types/babel__core": "^7.20.5", | 53 | "@types/babel__core": "^7.20.5", |
54 | "@types/node": "^20.11.28", | 54 | "@types/node": "^20.11.28", |
55 | "@types/react": "^18.2.67", | 55 | "@types/react": "^18.2.67", |
56 | "cross-env": "^7.0.3", | ||
56 | "prettier": "^3.2.5", | 57 | "prettier": "^3.2.5", |
57 | "responsive-loader": "^3.1.2", | 58 | "responsive-loader": "^3.1.2", |
58 | "sharp": "^0.33.2", | 59 | "sharp": "^0.33.2", |
@@ -4556,7 +4556,19 @@ __metadata: | |||
4556 | languageName: node | 4556 | languageName: node |
4557 | linkType: hard | 4557 | linkType: hard |
4558 | 4558 | ||
4559 | "cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.3": | 4559 | "cross-env@npm:^7.0.3": |
4560 | version: 7.0.3 | ||
4561 | resolution: "cross-env@npm:7.0.3" | ||
4562 | dependencies: | ||
4563 | cross-spawn: "npm:^7.0.1" | ||
4564 | bin: | ||
4565 | cross-env: src/bin/cross-env.js | ||
4566 | cross-env-shell: src/bin/cross-env-shell.js | ||
4567 | checksum: 10c0/f3765c25746c69fcca369655c442c6c886e54ccf3ab8c16847d5ad0e91e2f337d36eedc6599c1227904bf2a228d721e690324446876115bc8e7b32a866735ecf | ||
4568 | languageName: node | ||
4569 | linkType: hard | ||
4570 | |||
4571 | "cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.1, cross-spawn@npm:^7.0.3": | ||
4560 | version: 7.0.3 | 4572 | version: 7.0.3 |
4561 | resolution: "cross-spawn@npm:7.0.3" | 4573 | resolution: "cross-spawn@npm:7.0.3" |
4562 | dependencies: | 4574 | dependencies: |
@@ -7496,6 +7508,7 @@ __metadata: | |||
7496 | "@types/node": "npm:^20.11.28" | 7508 | "@types/node": "npm:^20.11.28" |
7497 | "@types/react": "npm:^18.2.67" | 7509 | "@types/react": "npm:^18.2.67" |
7498 | clsx: "npm:^2.1.0" | 7510 | clsx: "npm:^2.1.0" |
7511 | cross-env: "npm:^7.0.3" | ||
7499 | prettier: "npm:^3.2.5" | 7512 | prettier: "npm:^3.2.5" |
7500 | prop-types: "npm:^15.8.1" | 7513 | prop-types: "npm:^15.8.1" |
7501 | react: "npm:^18.2.0" | 7514 | react: "npm:^18.2.0" |