Skip to content

Multiple sprites #1

@mikestreety

Description

@mikestreety

We need to remove the hardcoded site_package in the sprite config and work out how to do multitple sprites.

Maybe we don't have the sprite config coded already but exportable with a function?

Something like the following. The sprite function then generates all the default, shared config

import { defineConfig, configuration, sprite } from '@liquidlight/vite-framework';

export default defineConfig(
	configuration(
		plugins: [
			sprite('site_package'),
		]
	)
);

https://spiriitlabs.github.io/vite-plugin-svg-spritemap/guide/multiple-instance.html

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions