chore: async script

This commit is contained in:
Anthony Fu 2020-12-21 17:34:47 +08:00
parent 9978e5e5a1
commit 1fdc7e710c
3 changed files with 53 additions and 6 deletions

View File

@ -2,7 +2,7 @@
"private": true,
"scripts": {
"dev": "vite --port 3333 --open",
"build": "cross-env NODE_ENV=production vite-ssg build"
"build": "cross-env NODE_ENV=production vite-ssg build --script async"
},
"dependencies": {
"@iconify/iconify": "^2.0.0-rc.4",
@ -36,7 +36,7 @@
"vite-plugin-purge-icons": "^0.4.5",
"vite-plugin-pwa": "^0.1.7",
"vite-plugin-voie": "^0.4.1",
"vite-ssg": "^0.0.5",
"vite-ssg": "^0.0.7",
"voie-pages": "^0.4.0"
},
"pnpm": {

View File

@ -29,7 +29,7 @@ devDependencies:
vite-plugin-purge-icons: 0.4.5
vite-plugin-pwa: 0.1.7
vite-plugin-voie: 0.4.1_b4f890ebcd2c7fb57691a875170d0d78
vite-ssg: 0.0.5_fc727f10f0d17e293defdef0a51ff799
vite-ssg: 0.0.7_fc727f10f0d17e293defdef0a51ff799
voie-pages: 0.4.0_vue@3.0.4
lockfileVersion: 5.2
overrides:
@ -2219,6 +2219,14 @@ packages:
dev: true
resolution:
integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==
/cliui/7.0.4:
dependencies:
string-width: 4.2.0
strip-ansi: 6.0.0
wrap-ansi: 7.0.0
dev: true
resolution:
integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==
/clone/1.0.4:
dev: true
engines:
@ -5564,7 +5572,7 @@ packages:
vue-router: ^4.0.0-beta.4
resolution:
integrity: sha512-oGynRoj+CwQ4bcXPDDI9l18GgFl1yyjc8u3nmrDhMzWdu3EY8BTL9NLxA028tkbRGMvs/lUJJXnFzp//yApY2Q==
/vite-ssg/0.0.5_fc727f10f0d17e293defdef0a51ff799:
/vite-ssg/0.0.7_fc727f10f0d17e293defdef0a51ff799:
dependencies:
'@vue/compiler-sfc': 3.0.4_vue@3.0.4
'@vue/server-renderer': 3.0.4_vue@3.0.4
@ -5572,6 +5580,7 @@ packages:
vite: 1.0.0-rc.13
vue: 3.0.4
vue-router: 4.0.1_vue@3.0.4
yargs: 16.2.0
dev: true
hasBin: true
peerDependencies:
@ -5581,7 +5590,7 @@ packages:
vue: ^3.0.4
vue-router: ^4.0.1
resolution:
integrity: sha512-FEzIwvYho5doG6G09rQa2ySurGAc2rYnIx5w3dZyelKsg7Q60ejUDGuRGETOX0UuItWUGKnIVHqEgGEsFFxFRw==
integrity: sha512-vYpG+vemmiiGZRv71ljs5Lsb7JuGfRwPinwwsLN3H/FqnxSeIi3u0IgfVoDx7ARdX72CJJAVt8cu1GZxOBXalA==
/vite/1.0.0-rc.13:
dependencies:
'@babel/parser': 7.12.10
@ -5879,6 +5888,16 @@ packages:
node: '>=8'
resolution:
integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==
/wrap-ansi/7.0.0:
dependencies:
ansi-styles: 4.3.0
string-width: 4.2.0
strip-ansi: 6.0.0
dev: true
engines:
node: '>=10'
resolution:
integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
/wrappy/1.0.2:
dev: true
resolution:
@ -5907,6 +5926,12 @@ packages:
dev: true
resolution:
integrity: sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==
/y18n/5.0.5:
dev: true
engines:
node: '>=10'
resolution:
integrity: sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg==
/yallist/3.1.1:
dev: true
resolution:
@ -5930,6 +5955,12 @@ packages:
node: '>=6'
resolution:
integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==
/yargs-parser/20.2.4:
dev: true
engines:
node: '>=10'
resolution:
integrity: sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==
/yargs/15.4.1:
dependencies:
cliui: 6.0.0
@ -5948,6 +5979,20 @@ packages:
node: '>=8'
resolution:
integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==
/yargs/16.2.0:
dependencies:
cliui: 7.0.4
escalade: 3.1.1
get-caller-file: 2.0.5
require-directory: 2.1.1
string-width: 4.2.0
y18n: 5.0.5
yargs-parser: 20.2.4
dev: true
engines:
node: '>=10'
resolution:
integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==
/ylru/1.2.1:
dev: true
engines:
@ -5981,7 +6026,7 @@ specifiers:
vite-plugin-purge-icons: ^0.4.5
vite-plugin-pwa: ^0.1.7
vite-plugin-voie: ^0.4.1
vite-ssg: ^0.0.5
vite-ssg: ^0.0.7
voie-pages: ^0.4.0
vue: ^3.0.4
vue-i18n: 9.0.0-beta.8

2
public/robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Allow: /