3.9.114 • Published 1 year ago

@devtea2026/a-quis-dolores-deserunt v3.9.114

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@devtea2026/a-quis-dolores-deserunt

This vite plugin generates a single SVG spritemap containing multiple elements from all .svg files in a directory.

Features

  • Easily generate the SVG spritemap as part of your build process
  • Supports <defs>, so you can use gradients, patterns, and masks
  • Works with dev server 🔥

If you find this plugin useful, why not

Installation

# using npm
npm install -D @devtea2026/a-quis-dolores-deserunt
# using pnpm
pnpm install -D @devtea2026/a-quis-dolores-deserunt
# using yarn
yarn add --dev @devtea2026/a-quis-dolores-deserunt

Usage

Vite config

import { svgSpritemap } from '@devtea2026/a-quis-dolores-deserunt';

export default defineConfig({
  plugins: [
    svgSpritemap({
      pattern: 'src/icons/*.svg',
    }),
  ],
});

SVG element

export const Icon: React.FC<{ name: string }> = ({ name }) => (
  <svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink">
    <use xlinkHref={`/spritemap.svg#${name}`} />
  </svg>
);

const App = () => {
  return <Icon name="arrow" />;
};

Options

OptionTypeDescription
patternstringA glob pattern that specifies which SVG files to include in the sprite.
prefixstring (optional)A string that is added to the beginning of each SVG icon's ID when it is added to the sprite.
filenamestring (optional)The name of the output file that contains the SVG sprite. Default is spritemap.svg.
currentColorboolean (optional)Replace colors in the SVGs with the currentColor value by SVGO. Default is true.
svgoSVGOConfig or boolean (optional)Use SVGO for optimization. Default is true.
spinnerschromiumes8es-shimsbyteLengthworkflowrangeerrorroute53lengthexit-codeiamchineseopenssigtermairbnbkarmaUint16ArraynamestypescollectionmochakeysSetrapidmapsigintprotocol-buffersconcatMapstyleguidechaitrimbyteOffsetES8assigncallboundhttpwhatwgfilterloadbalancingfast-clonefull-widthschemetypeofutilelmArray.prototype.filterstableterminalpnpm9String.prototype.matchAllcallArray.prototype.findLastspawneast-asian-widthassertionwgetless mixinsvaluefunctionalcreatecallbindparentshas-owndatastructurewalkingfast-deep-copyuninstalltyped arrayurlsreactrecursivelistenersstreamsarraybufferpatchRFC-6455xdg-openmoveES2022Function.prototype.namemacostypanionECMAScript 2018functionglaciersimpledbtypesafeflatconcurrency$.extendstoragegatewayES3randomclassnameenvironmentiterationproxysharedarraybufferSymbol.toStringTagObject.fromEntriesyamlcsspropertymapreducestatewebponyfillfseventsgroupinterruptsMapastdotenvrestextensionpackagesreadwindowsidfindLastIndexbytevalidationwalkdateObject.assignstartersymbolfolder0phoneflagtoArrayECMAScript 2021wafsymlinksshellgetterpackageserializationcloneflattenwidthsyntaxstdlibidlees2016Int32ArrayforEachArrayBufferwatchtextUint8ClampedArrayfullwidthcss lesscall-bindmime-dbdeepcloneinferenceresolveerror-handlingfindrm -rfargparsechromeprivate datatypescriptregexpqueueconcatRximmutableJSON-SchemabundlercjkpicomatchstringifyinspectCSSasciihandlersmkdirslrutoobjectstylesheetmixinsWeakSetcontainsavahasOwnPropertyio-tssetterassertreact-hookscolumnsUint8ArraystructuredCloneimportendpointreuseclassnamesserializerlesseditorYAMLjavascriptexeflatMapawaitdeterministicArray.prototype.flatMaphigher-orderloggingredux-toolkitvaluesratesuperagentArray.prototype.findLastIndexwordwrapdebuggerconsumerequestvpcECMAScript 3ECMAScript 5launchArray.prototype.flattenutilitiesi18nbuffersObject.ispipeECMAScript 7dataViewURLcirculargradients css3TypeScriptdebuglibphonenumberpasswordcss-in-jskoreanwatchFilelanguageECMAScript 2015bootstrap lessJSONquerystringencryptionemrlockfileregularentriesspeedreduxebsargsjsdiffprunemake dirfastcopygetOwnPropertyDescriptorinvariantpositiveES2015util.inspectwaitasyncobjdescriptionprotosameValueZerofastcorslinuxmatchlook-upStreamsboundminimalunicodexhrdiffsymbolsexeceslintECMAScript 2020cacheECMAScript 2016taskObservablesTypedArrayautoscalingless.jsautoprefixer_.extendstartauthenticationdefaultreal-timeoperating-systemrouter@@toStringTagtrimEndcharactersbindwebsitewordbreakclidayjsslotchildprocessbrowserslistquerymergedeep-clonevisualstreamsorttoSortedless compilerbundlingyupwritejsxES2017environmentscomputed-typeslimitqsFloat64ArrayformshttpsWeakMapdirArrayisWebSocketajvfluxform-validationvestefficientscheme-validationreplayTypeBoxbrowserlistextendcloudformationshebangcss variable[[Prototype]]dropbusycolorsregexsharedESflagsCSSStyleDeclarationutilityemojikeytesternodejsdeep-copyweakmapbufferPromiseoutputextratimelesscsszoddescriptorsrgbhasECMAScript 2023formattinggetPrototypeOfURLSearchParamstakeopenserializeansinamexdgsettingscolourRegExp#flagspushpackage managerESnextsqsnested csscompilerpolyfillerrorstylescode points
3.9.114

1 year ago

3.9.113

1 year ago

3.9.112

1 year ago

3.9.111

1 year ago

3.9.110

1 year ago

3.9.109

1 year ago

3.8.109

1 year ago

3.8.108

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

3.2.35

1 year ago

3.2.34

1 year ago

3.2.37

1 year ago

3.2.36

1 year ago

3.2.39

1 year ago

3.2.38

1 year ago

3.8.98

1 year ago

3.8.99

1 year ago

3.2.33

1 year ago

3.8.96

1 year ago

3.8.97

1 year ago

3.3.57

1 year ago

3.5.79

1 year ago

3.3.58

1 year ago

3.1.33

1 year ago

3.5.78

1 year ago

3.3.59

1 year ago

3.5.77

1 year ago

3.3.50

1 year ago

3.3.51

1 year ago

3.3.52

1 year ago

3.3.53

1 year ago

3.3.54

1 year ago

3.3.55

1 year ago

3.1.32

1 year ago

3.3.56

1 year ago

3.1.31

1 year ago

3.7.95

1 year ago

3.7.96

1 year ago

3.7.93

1 year ago

3.7.94

1 year ago

3.7.91

1 year ago

3.7.92

1 year ago

3.7.90

1 year ago

3.3.68

1 year ago

3.5.85

1 year ago

3.5.84

1 year ago

3.3.60

1 year ago

3.3.61

1 year ago

3.3.62

1 year ago

3.3.63

1 year ago

3.3.64

1 year ago

3.3.65

1 year ago

3.3.66

1 year ago

2.1.29

1 year ago

3.3.67

1 year ago

3.5.83

1 year ago

2.1.30

1 year ago

1.1.23

1 year ago

3.5.82

1 year ago

2.1.31

1 year ago

1.1.22

1 year ago

3.5.81

1 year ago

1.1.21

1 year ago

3.5.80

1 year ago

1.1.20

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

3.7.89

1 year ago

3.8.100

1 year ago

3.8.101

1 year ago

3.8.102

1 year ago

3.8.103

1 year ago

3.8.104

1 year ago

3.8.105

1 year ago

3.8.106

1 year ago

3.8.107

1 year ago

3.4.69

1 year ago

3.2.46

1 year ago

3.2.45

1 year ago

3.2.48

1 year ago

3.6.89

1 year ago

3.2.47

1 year ago

3.6.88

1 year ago

3.6.87

1 year ago

3.2.49

1 year ago

3.6.86

1 year ago

3.6.85

1 year ago

3.2.40

1 year ago

3.2.42

1 year ago

3.2.41

1 year ago

3.2.44

1 year ago

3.4.68

1 year ago

3.2.43

1 year ago

3.4.72

1 year ago

3.4.73

1 year ago

3.4.74

1 year ago

3.4.75

1 year ago

3.2.50

1 year ago

3.4.76

1 year ago

3.4.77

1 year ago

3.4.70

1 year ago

3.4.71

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago