feat: добавить серверную генерацию спрайтов

This commit is contained in:
2026-07-16 09:14:11 +03:00
parent e9ae91815a
commit 57342fae4e
379 changed files with 3108 additions and 655 deletions

View File

@@ -0,0 +1,17 @@
const sourceOrigin = process.env.SVG_SPRITE_SOURCE_ORIGIN
const sourceSha256 = process.env.SVG_SPRITE_SOURCE_SHA256
if (!sourceOrigin || !sourceSha256) throw new Error('HTTP source origin and SHA-256 are required.')
export default {
mode: 'standalone@server',
name: 'remote-http',
input: [
{
name: 'folder open',
url: `${sourceOrigin}/sources/check.svg`,
sha256: sourceSha256,
},
],
generatedNotice: false,
}

View File

@@ -0,0 +1,13 @@
const sourceOrigin = process.env.SVG_SPRITE_SOURCE_ORIGIN
if (!sourceOrigin) throw new Error('SVG_SPRITE_SOURCE_ORIGIN is required.')
export default {
mode: 'standalone@server',
name: 'remote-app',
input: [
'../../../../fixtures/icons/duotone.svg',
{ name: 'check', url: `${sourceOrigin}/sources/check.svg` },
],
generatedNotice: false,
}

View File

@@ -0,0 +1,11 @@
export default {
mode: 'standalone@server',
name: 'remote-plain',
input: '../../../../fixtures/icons/duotone.svg',
transform: {
removeSize: false,
replaceColors: false,
addTransition: false,
},
generatedNotice: false,
}