Skip to content

Commit

Permalink
Showing 115 changed files with 22 additions and 19 deletions.
Binary file added assets/img/bg.webp
Binary file not shown.
Binary file added assets/img/cardback.webp
Binary file not shown.
Binary file added assets/img/cards/0.webp
Binary file not shown.
Binary file added assets/img/cards/1.webp
Binary file not shown.
Binary file added assets/img/cards/10.webp
Binary file not shown.
Binary file added assets/img/cards/100.webp
Binary file not shown.
Binary file added assets/img/cards/101.webp
Binary file not shown.
Binary file added assets/img/cards/11.webp
Binary file not shown.
Binary file added assets/img/cards/12.webp
Binary file not shown.
Binary file added assets/img/cards/13.webp
Binary file not shown.
Binary file added assets/img/cards/14.webp
Binary file not shown.
Binary file added assets/img/cards/15.webp
Binary file not shown.
Binary file added assets/img/cards/16.webp
Binary file not shown.
Binary file added assets/img/cards/17.webp
Binary file not shown.
Binary file added assets/img/cards/18.webp
Binary file not shown.
Binary file added assets/img/cards/19.webp
Binary file not shown.
Binary file added assets/img/cards/2.webp
Binary file not shown.
Binary file added assets/img/cards/20.webp
Binary file not shown.
Binary file added assets/img/cards/21.webp
Binary file not shown.
Binary file added assets/img/cards/22.webp
Binary file not shown.
Binary file added assets/img/cards/23.webp
Binary file not shown.
Binary file added assets/img/cards/24.webp
Binary file not shown.
Binary file added assets/img/cards/25.webp
Binary file not shown.
Binary file added assets/img/cards/26.webp
Binary file not shown.
Binary file added assets/img/cards/27.webp
Binary file not shown.
Binary file added assets/img/cards/28.webp
Binary file not shown.
Binary file added assets/img/cards/29.webp
Binary file not shown.
Binary file added assets/img/cards/3.webp
Binary file not shown.
Binary file added assets/img/cards/30.webp
Binary file not shown.
Binary file added assets/img/cards/31.webp
Binary file not shown.
Binary file added assets/img/cards/32.webp
Binary file not shown.
Binary file added assets/img/cards/33.webp
Binary file not shown.
Binary file added assets/img/cards/34.webp
Binary file not shown.
Binary file added assets/img/cards/35.webp
Binary file not shown.
Binary file added assets/img/cards/36.webp
Binary file not shown.
Binary file added assets/img/cards/37.webp
Binary file not shown.
Binary file added assets/img/cards/38.webp
Binary file not shown.
Binary file added assets/img/cards/39.webp
Binary file not shown.
Binary file added assets/img/cards/4.webp
Binary file not shown.
Binary file added assets/img/cards/40.webp
Binary file not shown.
Binary file added assets/img/cards/41.webp
Binary file not shown.
Binary file added assets/img/cards/42.webp
Binary file not shown.
Binary file added assets/img/cards/43.webp
Binary file not shown.
Binary file added assets/img/cards/44.webp
Binary file not shown.
Binary file added assets/img/cards/45.webp
Binary file not shown.
Binary file added assets/img/cards/46.webp
Binary file not shown.
Binary file added assets/img/cards/47.webp
Binary file not shown.
Binary file added assets/img/cards/48.webp
Binary file not shown.
Binary file added assets/img/cards/49.webp
Binary file not shown.
Binary file added assets/img/cards/5.webp
Binary file not shown.
Binary file added assets/img/cards/50.webp
Binary file not shown.
Binary file added assets/img/cards/51.webp
Binary file not shown.
Binary file added assets/img/cards/52.webp
Binary file not shown.
Binary file added assets/img/cards/53.webp
Binary file not shown.
Binary file added assets/img/cards/54.webp
Binary file not shown.
Binary file added assets/img/cards/55.webp
Binary file not shown.
Binary file added assets/img/cards/56.webp
Binary file not shown.
Binary file added assets/img/cards/57.webp
Binary file not shown.
Binary file added assets/img/cards/58.webp
Binary file not shown.
Binary file added assets/img/cards/59.webp
Binary file not shown.
Binary file added assets/img/cards/6.webp
Binary file not shown.
Binary file added assets/img/cards/60.webp
Binary file not shown.
Binary file added assets/img/cards/61.webp
Binary file not shown.
Binary file added assets/img/cards/62.webp
Binary file not shown.
Binary file added assets/img/cards/63.webp
Binary file not shown.
Binary file added assets/img/cards/64.webp
Binary file not shown.
Binary file added assets/img/cards/65.webp
Binary file not shown.
Binary file added assets/img/cards/66.webp
Binary file not shown.
Binary file added assets/img/cards/67.webp
Binary file not shown.
Binary file added assets/img/cards/68.webp
Binary file not shown.
Binary file added assets/img/cards/69.webp
Binary file not shown.
Binary file added assets/img/cards/7.webp
Binary file not shown.
Binary file added assets/img/cards/70.webp
Binary file not shown.
Binary file added assets/img/cards/71.webp
Binary file not shown.
Binary file added assets/img/cards/72.webp
Binary file not shown.
Binary file added assets/img/cards/73.webp
Binary file not shown.
Binary file added assets/img/cards/74.webp
Binary file not shown.
Binary file added assets/img/cards/75.webp
Binary file not shown.
Binary file added assets/img/cards/76.webp
Binary file not shown.
Binary file added assets/img/cards/77.webp
Binary file not shown.
Binary file added assets/img/cards/78.webp
Binary file not shown.
Binary file added assets/img/cards/79.webp
Binary file not shown.
Binary file added assets/img/cards/8.webp
Binary file not shown.
Binary file added assets/img/cards/80.webp
Binary file not shown.
Binary file added assets/img/cards/81.webp
Binary file not shown.
Binary file added assets/img/cards/82.webp
Binary file not shown.
Binary file added assets/img/cards/83.webp
Binary file not shown.
Binary file added assets/img/cards/84.webp
Binary file not shown.
Binary file added assets/img/cards/85.webp
Binary file not shown.
Binary file added assets/img/cards/86.webp
Binary file not shown.
Binary file added assets/img/cards/87.webp
Binary file not shown.
Binary file added assets/img/cards/88.webp
Binary file not shown.
Binary file added assets/img/cards/89.webp
Binary file not shown.
Binary file added assets/img/cards/9.webp
Binary file not shown.
Binary file added assets/img/cards/90.webp
Binary file not shown.
Binary file added assets/img/cards/91.webp
Binary file not shown.
Binary file added assets/img/cards/92.webp
Binary file not shown.
Binary file added assets/img/cards/93.webp
Binary file not shown.
Binary file added assets/img/cards/94.webp
Binary file not shown.
Binary file added assets/img/cards/95.webp
Binary file not shown.
Binary file added assets/img/cards/96.webp
Binary file not shown.
Binary file added assets/img/cards/97.webp
Binary file not shown.
Binary file added assets/img/cards/98.webp
Binary file not shown.
Binary file added assets/img/cards/99.webp
Binary file not shown.
Binary file added assets/img/explosion.webp
Binary file not shown.
Binary file added assets/img/firework.webp
Binary file not shown.
Binary file added assets/img/noise.webp
Binary file not shown.
Binary file added assets/img/res_1.webp
Binary file not shown.
Binary file added assets/img/res_2.webp
Binary file not shown.
Binary file added assets/img/res_3.webp
Binary file not shown.
Binary file added assets/img/tower.webp
Binary file not shown.
Binary file added assets/img/tower_blue.webp
Binary file not shown.
Binary file added assets/img/tower_red.webp
Binary file not shown.
Binary file added assets/img/wall.webp
Binary file not shown.
41 changes: 22 additions & 19 deletions tools/img-min/index.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
;(async () => {
const imagemin = (await import('imagemin')).default
const imageminWebp = (await import('imagemin-webp')).default
const imageminPng = (await import('imagemin-optipng')).default
await imagemin(['./assets/img/*.png'], {
destination: 'assets/img-min',
plugins: [
imageminWebp({ lossless: true }),
],
// const imageminPng = (await import('imagemin-optipng')).default
await imagemin(
['./tools/img-min/original/*.png', '!./tools/img-min/original/bg.png'],
{
destination: './assets/img',
plugins: [imageminWebp({ lossless: true })],
},
)
await imagemin(['./tools/img-min/original/bg.png'], {
destination: './assets/img',
plugins: [imageminWebp({ quality: 90, method: 6, sns: 100 })],
})
await imagemin(['./assets/img/cards/*.png'], {
destination: 'assets/img-min/cards',
plugins: [
imageminWebp({ lossless: true }),
],
})
await imagemin(['./assets/img/*.png'], {
destination: 'assets/img',
plugins: [imageminPng({ optimizationLevel: 5 })],
})
await imagemin(['./assets/img/cards/*.png'], {
destination: 'assets/img/cards',
plugins: [imageminPng({ optimizationLevel: 5 })],
await imagemin(['./tools/img-min/original/cards/*.png'], {
destination: './assets/img/cards',
plugins: [imageminWebp({ lossless: true })],
})
// await imagemin(['./tools/img-min/original/*.png'], {
// destination: './tools/img-min/opt/',
// plugins: [imageminPng({ optimizationLevel: 5 })],
// })
// await imagemin(['./tools/img-min/original/cards/*.png'], {
// destination: './tools/img-min/opt/',
// plugins: [imageminPng({ optimizationLevel: 5 })],
// })
})()

0 comments on commit 65d240c

Please sign in to comment.