mirror of
https://github.com/gromlab-ru/svg-sprites.git
synced 2026-07-22 04:40:17 +03:00
feat: добавить серверную генерацию спрайтов
This commit is contained in:
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user