Fix SSG build with the latest version of vite-ssg
This commit is contained in:
parent
417ca9a522
commit
06362b3984
5 changed files with 48 additions and 73 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,6 +1,8 @@
|
||||||
.idea/
|
.idea/
|
||||||
/node_modules/
|
/node_modules/
|
||||||
/dist/
|
/dist/
|
||||||
|
/.vite-ssg-temp/
|
||||||
|
|
||||||
*.log
|
*.log
|
||||||
.env
|
.env
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,4 @@
|
||||||
🔥 [**moritzruth.de**](https://moritzruth.de)
|
🔥 [**moritzruth.de**](https://moritzruth.de)
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
- vite-ssg is locked to v0.16.2 because of https://github.com/antfu/vite-ssg/issues/150
|
- @vueuse/head is locked to ^0.5.1 because vite-ssg@0.17.2 requires it
|
||||||
- @vueuse/head is locked to v0.5.1 because vite-ssg@0.16.2 requires it
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
"blobs": "^2.2.1-beta.1",
|
"blobs": "^2.2.1-beta.1",
|
||||||
"ohmyfetch": "^0.4.11",
|
"ohmyfetch": "^0.4.11",
|
||||||
"unplugin-icons": "^0.12.23",
|
"unplugin-icons": "^0.12.23",
|
||||||
"vite-ssg": "0.16.2",
|
"vite-ssg": "^0.17.2",
|
||||||
"vue": "^3.2.26",
|
"vue": "^3.2.26",
|
||||||
"vue-router": "^4.0.12"
|
"vue-router": "^4.0.12"
|
||||||
}
|
}
|
||||||
|
|
113
pnpm-lock.yaml
generated
113
pnpm-lock.yaml
generated
|
@ -17,7 +17,7 @@ specifiers:
|
||||||
vite: ^2.3.7
|
vite: ^2.3.7
|
||||||
vite-plugin-pages: ^0.19.4
|
vite-plugin-pages: ^0.19.4
|
||||||
vite-plugin-windicss: ^1.0.4
|
vite-plugin-windicss: ^1.0.4
|
||||||
vite-ssg: 0.16.2
|
vite-ssg: ^0.17.2
|
||||||
vue: ^3.2.26
|
vue: ^3.2.26
|
||||||
vue-router: ^4.0.12
|
vue-router: ^4.0.12
|
||||||
windicss: ^3.2.1
|
windicss: ^3.2.1
|
||||||
|
@ -31,7 +31,7 @@ dependencies:
|
||||||
blobs: 2.2.1-beta.1
|
blobs: 2.2.1-beta.1
|
||||||
ohmyfetch: 0.4.11
|
ohmyfetch: 0.4.11
|
||||||
unplugin-icons: 0.12.23_fb6292b47fe9c67e26b404bea724bbe1
|
unplugin-icons: 0.12.23_fb6292b47fe9c67e26b404bea724bbe1
|
||||||
vite-ssg: 0.16.2_f48a230ae546e5bcb22c6a17141ea5b0
|
vite-ssg: 0.17.2_f48a230ae546e5bcb22c6a17141ea5b0
|
||||||
vue: 3.2.26
|
vue: 3.2.26
|
||||||
vue-router: 4.0.12_vue@3.2.26
|
vue-router: 4.0.12_vue@3.2.26
|
||||||
|
|
||||||
|
@ -349,9 +349,9 @@ packages:
|
||||||
fastq: 1.13.0
|
fastq: 1.13.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@tootallnate/once/1.1.2:
|
/@tootallnate/once/2.0.0:
|
||||||
resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==}
|
resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}
|
||||||
engines: {node: '>= 6'}
|
engines: {node: '>= 10'}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@types/json-schema/7.0.9:
|
/@types/json-schema/7.0.9:
|
||||||
|
@ -1047,11 +1047,11 @@ packages:
|
||||||
esutils: 2.0.3
|
esutils: 2.0.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/domexception/2.0.1:
|
/domexception/4.0.0:
|
||||||
resolution: {integrity: sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==}
|
resolution: {integrity: sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=12'}
|
||||||
dependencies:
|
dependencies:
|
||||||
webidl-conversions: 5.0.0
|
webidl-conversions: 7.0.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/electron-to-chromium/1.4.23:
|
/electron-to-chromium/1.4.23:
|
||||||
|
@ -1845,11 +1845,11 @@ packages:
|
||||||
resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==}
|
resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/html-encoding-sniffer/2.0.1:
|
/html-encoding-sniffer/3.0.0:
|
||||||
resolution: {integrity: sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==}
|
resolution: {integrity: sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=12'}
|
||||||
dependencies:
|
dependencies:
|
||||||
whatwg-encoding: 1.0.5
|
whatwg-encoding: 2.0.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/html-minifier/4.0.0:
|
/html-minifier/4.0.0:
|
||||||
|
@ -1866,11 +1866,11 @@ packages:
|
||||||
uglify-js: 3.14.5
|
uglify-js: 3.14.5
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/http-proxy-agent/4.0.1:
|
/http-proxy-agent/5.0.0:
|
||||||
resolution: {integrity: sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==}
|
resolution: {integrity: sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==}
|
||||||
engines: {node: '>= 6'}
|
engines: {node: '>= 6'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@tootallnate/once': 1.1.2
|
'@tootallnate/once': 2.0.0
|
||||||
agent-base: 6.0.2
|
agent-base: 6.0.2
|
||||||
debug: 4.3.3
|
debug: 4.3.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
@ -1892,8 +1892,8 @@ packages:
|
||||||
engines: {node: '>=10.17.0'}
|
engines: {node: '>=10.17.0'}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/iconv-lite/0.4.24:
|
/iconv-lite/0.6.3:
|
||||||
resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}
|
resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
safer-buffer: 2.1.2
|
safer-buffer: 2.1.2
|
||||||
|
@ -2131,8 +2131,8 @@ packages:
|
||||||
esprima: 4.0.1
|
esprima: 4.0.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/jsdom/17.0.0:
|
/jsdom/19.0.0:
|
||||||
resolution: {integrity: sha512-MUq4XdqwtNurZDVeKScENMPHnkgmdIvMzZ1r1NSwHkDuaqI6BouPjr+17COo4/19oLNnmdpFDPOHVpgIZmZ+VA==}
|
resolution: {integrity: sha512-RYAyjCbxy/vri/CfnjUWJQQtZ3LKlLnDqj+9XLNnJPgEGeirZs3hllKR20re8LUZ6o1b1X4Jat+Qd26zmP41+A==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
canvas: ^2.5.0
|
canvas: ^2.5.0
|
||||||
|
@ -2147,11 +2147,11 @@ packages:
|
||||||
cssstyle: 2.3.0
|
cssstyle: 2.3.0
|
||||||
data-urls: 3.0.1
|
data-urls: 3.0.1
|
||||||
decimal.js: 10.3.1
|
decimal.js: 10.3.1
|
||||||
domexception: 2.0.1
|
domexception: 4.0.0
|
||||||
escodegen: 2.0.0
|
escodegen: 2.0.0
|
||||||
form-data: 4.0.0
|
form-data: 4.0.0
|
||||||
html-encoding-sniffer: 2.0.1
|
html-encoding-sniffer: 3.0.0
|
||||||
http-proxy-agent: 4.0.1
|
http-proxy-agent: 5.0.0
|
||||||
https-proxy-agent: 5.0.0
|
https-proxy-agent: 5.0.0
|
||||||
is-potential-custom-element-name: 1.0.1
|
is-potential-custom-element-name: 1.0.1
|
||||||
nwsapi: 2.2.0
|
nwsapi: 2.2.0
|
||||||
|
@ -2160,13 +2160,13 @@ packages:
|
||||||
symbol-tree: 3.2.4
|
symbol-tree: 3.2.4
|
||||||
tough-cookie: 4.0.0
|
tough-cookie: 4.0.0
|
||||||
w3c-hr-time: 1.0.2
|
w3c-hr-time: 1.0.2
|
||||||
w3c-xmlserializer: 2.0.0
|
w3c-xmlserializer: 3.0.0
|
||||||
webidl-conversions: 6.1.0
|
webidl-conversions: 7.0.0
|
||||||
whatwg-encoding: 1.0.5
|
whatwg-encoding: 2.0.0
|
||||||
whatwg-mimetype: 2.3.0
|
whatwg-mimetype: 3.0.0
|
||||||
whatwg-url: 9.1.0
|
whatwg-url: 10.0.0
|
||||||
ws: 8.3.0
|
ws: 8.3.0
|
||||||
xml-name-validator: 3.0.0
|
xml-name-validator: 4.0.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- supports-color
|
- supports-color
|
||||||
|
@ -2971,13 +2971,6 @@ packages:
|
||||||
universalify: 0.1.2
|
universalify: 0.1.2
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/tr46/2.1.0:
|
|
||||||
resolution: {integrity: sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==}
|
|
||||||
engines: {node: '>=8'}
|
|
||||||
dependencies:
|
|
||||||
punycode: 2.1.1
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/tr46/3.0.0:
|
/tr46/3.0.0:
|
||||||
resolution: {integrity: sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==}
|
resolution: {integrity: sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
@ -3183,8 +3176,8 @@ packages:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/vite-ssg/0.16.2_f48a230ae546e5bcb22c6a17141ea5b0:
|
/vite-ssg/0.17.2_f48a230ae546e5bcb22c6a17141ea5b0:
|
||||||
resolution: {integrity: sha512-paoBbRdaKBznYf+aTqN2Ltf5dQiBgUKwM2uvwjmPsuPQbVcznzceb13cpoG4WXxlaW2EvPns30NRIM+U6RZU3w==}
|
resolution: {integrity: sha512-+cpU8GGT7eQknUgiSEYSKXsZyuKVxyLI/SB3c1FU9R/h/qJBdJXK1phHEQraohVcHuPo1/OFi45RbU8ktunqdw==}
|
||||||
engines: {node: '>=14.0.0'}
|
engines: {node: '>=14.0.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -3201,7 +3194,7 @@ packages:
|
||||||
chalk: 4.1.2
|
chalk: 4.1.2
|
||||||
fs-extra: 10.0.0
|
fs-extra: 10.0.0
|
||||||
html-minifier: 4.0.0
|
html-minifier: 4.0.0
|
||||||
jsdom: 17.0.0
|
jsdom: 19.0.0
|
||||||
prettier: 2.5.1
|
prettier: 2.5.1
|
||||||
vite: 2.7.3
|
vite: 2.7.3
|
||||||
vue: 3.2.26
|
vue: 3.2.26
|
||||||
|
@ -3296,11 +3289,11 @@ packages:
|
||||||
browser-process-hrtime: 1.0.0
|
browser-process-hrtime: 1.0.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/w3c-xmlserializer/2.0.0:
|
/w3c-xmlserializer/3.0.0:
|
||||||
resolution: {integrity: sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==}
|
resolution: {integrity: sha512-3WFqGEgSXIyGhOmAFtlicJNMjEps8b1MG31NCA0/vOF9+nKMUW1ckhi9cnNHmf88Rzw5V+dwIwsm2C7X8k9aQg==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=12'}
|
||||||
dependencies:
|
dependencies:
|
||||||
xml-name-validator: 3.0.0
|
xml-name-validator: 4.0.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/web-streams-polyfill/3.2.0:
|
/web-streams-polyfill/3.2.0:
|
||||||
|
@ -3308,16 +3301,6 @@ packages:
|
||||||
engines: {node: '>= 8'}
|
engines: {node: '>= 8'}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/webidl-conversions/5.0.0:
|
|
||||||
resolution: {integrity: sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==}
|
|
||||||
engines: {node: '>=8'}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/webidl-conversions/6.1.0:
|
|
||||||
resolution: {integrity: sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==}
|
|
||||||
engines: {node: '>=10.4'}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/webidl-conversions/7.0.0:
|
/webidl-conversions/7.0.0:
|
||||||
resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==}
|
resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
@ -3327,14 +3310,11 @@ packages:
|
||||||
resolution: {integrity: sha512-5NUqC2JquIL2pBAAo/VfBP6KuGkHIZQXW/lNKupLPfhViwh8wNsu0BObtl09yuKZszeEUfbXz8xhrHvSG16Nqw==}
|
resolution: {integrity: sha512-5NUqC2JquIL2pBAAo/VfBP6KuGkHIZQXW/lNKupLPfhViwh8wNsu0BObtl09yuKZszeEUfbXz8xhrHvSG16Nqw==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/whatwg-encoding/1.0.5:
|
/whatwg-encoding/2.0.0:
|
||||||
resolution: {integrity: sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==}
|
resolution: {integrity: sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==}
|
||||||
|
engines: {node: '>=12'}
|
||||||
dependencies:
|
dependencies:
|
||||||
iconv-lite: 0.4.24
|
iconv-lite: 0.6.3
|
||||||
dev: false
|
|
||||||
|
|
||||||
/whatwg-mimetype/2.3.0:
|
|
||||||
resolution: {integrity: sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==}
|
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/whatwg-mimetype/3.0.0:
|
/whatwg-mimetype/3.0.0:
|
||||||
|
@ -3350,14 +3330,6 @@ packages:
|
||||||
webidl-conversions: 7.0.0
|
webidl-conversions: 7.0.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/whatwg-url/9.1.0:
|
|
||||||
resolution: {integrity: sha512-CQ0UcrPHyomtlOCot1TL77WyMIm/bCwrJ2D6AOKGwEczU9EpyoqAokfqrf/MioU9kHcMsmJZcg1egXix2KYEsA==}
|
|
||||||
engines: {node: '>=12'}
|
|
||||||
dependencies:
|
|
||||||
tr46: 2.1.0
|
|
||||||
webidl-conversions: 6.1.0
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/which-boxed-primitive/1.0.2:
|
/which-boxed-primitive/1.0.2:
|
||||||
resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==}
|
resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -3432,8 +3404,9 @@ packages:
|
||||||
optional: true
|
optional: true
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/xml-name-validator/3.0.0:
|
/xml-name-validator/4.0.0:
|
||||||
resolution: {integrity: sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==}
|
resolution: {integrity: sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==}
|
||||||
|
engines: {node: '>=12'}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/xmlchars/2.2.0:
|
/xmlchars/2.2.0:
|
||||||
|
|
|
@ -15,6 +15,7 @@ export default defineConfig({
|
||||||
],
|
],
|
||||||
ssgOptions: {
|
ssgOptions: {
|
||||||
formatting: "minify",
|
formatting: "minify",
|
||||||
|
format: "cjs",
|
||||||
includedRoutes(routes) {
|
includedRoutes(routes) {
|
||||||
return routes.filter(route => !route.includes(":") && route !== "/blog")
|
return routes.filter(route => !route.includes(":") && route !== "/blog")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue