8.10.128 • Published 11 months ago

@ellentorg/quas-molestiae-vel v8.10.128

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@ellentorg/quas-molestiae-vel

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 @ellentorg/quas-molestiae-vel
# using pnpm
pnpm install -D @ellentorg/quas-molestiae-vel
# using yarn
yarn add --dev @ellentorg/quas-molestiae-vel

Usage

Vite config

import { svgSpritemap } from '@ellentorg/quas-molestiae-vel';

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.
react-testing-librarysharedarraybuffertesterTypedArrayminimalequalityes2015columnjavascripttypedarrayserror-handlinglimitedtapelook-upnameshrinkwrapmime-dbdropescapesettercompilercoloreslintquerystringshebanggradients css3fast-copyaccessorTypeBoxES3agentwatchUint8ArrayIteratorECMAScript 2015descriptiontsES2023reducecompareurlisformattingmapstreamspromisewatchingECMAScript 7interruptsrgbcallbindUint8ClampedArraymkdirpelmES8crypttoolkitpropertyES2017Arrayes7ObservablespicomatchStyleSheetprotobufdom-testing-libraryless mixinses2016concatMapcloudformationStreamsutilitiesyamlSymbolbeanstalksharedinferencegdprgenericsgetintrinsicUint16Arraytapnpmshellclonefile systemES2021listenersfast-deep-clonesettingsstreamString.prototype.matchAllemojisyntaxargparseRxJSbuffersES6deep-copyObject.valuesprefixtrimReactiveExtensionsmodulesmulti-packageES2019configidECMAScript 2016toolsstarterreduxsymbollazytoobjectdescriptorBigUint64ArraycommanderfilterdescriptorsjsregexpomitsetPrototypeOflimitconcatmimeproxyCSSStyleDeclarationES2016reactsestslibvaluesECMAScript 2022extracontainshasOwnemrcircularpolyfillflattendependenciesstyledatastructureES7ES2022bcryptECMAScript 3rapidcurlendpointprunepostcss-pluginprivatelinuxeveryhooksremovepredictableglobECMAScript 6safeinstallergetOwnPropertyDescriptorfast-deep-copyArray.prototype.findLastsyntaxerrorjQuerywordwraptelephoneratelimitcss lesstypesStreamcloudtrailregulardefineextensionpreprocessornamesimmeroncecliestreecollection.es6negativefetchrobustformajvdeepcopymatchpipecommandreplayyupfileebstostringtagWeakSetdiffnopeeventDispatchersignalsruntimeownfindidentifiersexit-codestringifierObject.definePropertyES2015fastifyArray.prototype.containsinvariantmochastreams2fastcopyreact-hook-formresttc39operating-systemuninstalljapaneserm -frbundlercoercibleArrayBuffer#slicetextdotenvObject.assignthroatInt32Arraystyled-componentsTypeScripttestingsignalbundlingloadingwindowsbyteforEachslotMicrosoftflatMappostcssimmutablemakemixinsrmelectronautoprefixervpcformatiesideeslintpluginwaitutil.inspectdeeptimeworkflowfullmoduletyped arraycolourECMAScript 5String.prototype.trimECMAScript 2020bootstrap cssquoteprivate dataUint32ArrayURLSearchParamswhatwgroutewrapsinatraimporteast-asian-widthjoiwgetcheckpathdependency managervariablesjshintfastcloneObject.fromEntrieschromefromstablepackage.jsonerroransigradients cssupequalcorecloudsearchmake dirguid-0typescriptECMAScript 2019helpersobjectenvironmentsponyfillglaciertouchcore-jsdefinePropertyassertformsreal-timeprogressbyteLengthnodetrimStartfigletmapreduceregular expressionexitArray.prototype.filterqshashstringifyreducerYAMLconsolesuperstructcss nestingjsondynamodbglobalsstatelesscss-in-jsObjectindicatorbannerdataunicodegroupcolumnsreadvalueisConcatSpreadableloggercorseslint-pluginObject.getPrototypeOfpluginwebassertiongetes-shim APIpackage managerprop.envcssFloat32ArraymatchAlllinkbreaknested cssECMAScript 2018jsdomnegative zeroless.jseslintconfigkeystylinglesscssloggingthrottlePushoptimistcodesspinnerflagJSON-Schemaroute53stringcss variableincludeswalkingBigInt64ArraywatchFilextermsortfindLastvisualvariables in css$.extendcolorslockfileairbnbproperties0arktypeelasticache_.extendArray.prototype.includestypeerrorquerysimpledbfindLastIndexpersistentbyteOffsetiterateObject.entriesObject.keysexpressionclassesloadbalancingReactiveXswfESnextfullwidthaccessibilitykeysclassnamegetoptAsyncIteratorsequencecallfast-cloneperformancesameValueZerofpsArray.prototype.flatnodejsRxnativefsbrowsertdddeletedatearraybufferworkerconnectinputoutputpromisesWebSocketwritableartgetPrototypeOfwritefseventswordbreakenderenvtrimRighthardlinksa11ytypedbrowserlistbluebirdnumberFunction.prototype.namehas__proto__setinFloat64Arraysigtermefficientfind-uptypesafecryptoless compilerutilityarrays[[Prototype]]assignmonorepodeepcloneavahas-ownshamredux-toolkitchromiumInt16Arraytraverseschemaredactes2017channelbatchJSONsnsprototypermdirqueueflagschaibootstrap lessdeep-clonejsdiffspinnerskarmardsjsxmobilehasOwnPropertytrimLeftconsumefinduplivepositivefunctionalcode pointsutilworkspace:*xhrfunctioncollectionschemegroupBySymbol.toStringTages2018macosglobalpackagesttyhttpscachespecqueueMicrotaskmomentsortedcensoremittoArrayawaittoStringTages5watchertoSortedecmascriptsqslinewrapextendtypeiterator@@toStringTagtestES5lastlibphonenumbertakesuperagenttaskargvReflect.getPrototypeOfcloudwatchoffsetidleeventEmittertrimEndchineseslicerecursivevalidatestylesheetregular expressionsphoneconcurrencyi18ndomcallboundperformantobjlintclassnamesautoscalingserializekoreancomputed-typesdataViewinternalopensomemkdirsweakmaplengthstdlibdataviewPromises3CSSsymbolsduplexEScjkflatvarscall-boundObservableelbconfigurable
5.6.91

1 year ago

5.6.90

1 year ago

3.4.40

1 year ago

3.4.41

1 year ago

3.4.42

1 year ago

3.4.43

1 year ago

2.3.28

1 year ago

2.3.27

1 year ago

2.3.29

1 year ago

2.3.26

1 year ago

5.5.48

1 year ago

5.5.49

1 year ago

5.5.46

1 year ago

5.5.47

1 year ago

5.6.84

1 year ago

5.6.83

1 year ago

5.6.86

1 year ago

5.6.85

1 year ago

5.6.82

1 year ago

5.6.81

1 year ago

8.10.111

11 months ago

8.10.112

11 months ago

8.10.113

11 months ago

8.10.114

11 months ago

8.10.115

11 months ago

2.3.35

1 year ago

8.10.116

11 months ago

2.3.34

1 year ago

8.10.117

11 months ago

2.3.37

1 year ago

8.10.118

11 months ago

2.3.36

1 year ago

2.3.31

1 year ago

2.3.30

1 year ago

2.3.33

1 year ago

2.3.32

1 year ago

5.6.88

1 year ago

5.6.87

1 year ago

8.10.110

11 months ago

5.6.89

1 year ago

8.10.119

11 months ago

8.10.122

11 months ago

4.4.43

1 year ago

8.10.123

11 months ago

8.10.124

11 months ago

8.10.125

11 months ago

8.10.126

11 months ago

8.10.127

11 months ago

8.10.128

11 months ago

8.10.120

11 months ago

8.10.121

11 months ago

3.4.39

1 year ago

5.4.45

1 year ago

6.8.97

12 months ago

5.4.46

1 year ago

5.4.43

1 year ago

5.4.44

1 year ago

3.3.37

1 year ago

3.3.38

1 year ago

5.5.80

1 year ago

3.3.39

1 year ago

5.5.81

1 year ago

6.9.99

12 months ago

6.9.98

12 months ago

6.9.97

12 months ago

5.5.73

1 year ago

5.5.74

1 year ago

5.5.71

1 year ago

5.5.72

1 year ago

5.5.70

1 year ago

7.10.108

12 months ago

7.10.107

12 months ago

6.10.106

12 months ago

7.10.109

11 months ago

6.9.103

12 months ago

6.6.91

1 year ago

7.10.110

11 months ago

6.9.102

12 months ago

6.9.101

12 months ago

6.9.100

12 months ago

1.3.24

1 year ago

1.3.25

1 year ago

5.5.79

1 year ago

1.3.23

1 year ago

5.5.77

1 year ago

6.9.106

12 months ago

5.5.78

1 year ago

6.9.105

12 months ago

5.5.75

1 year ago

1.3.26

1 year ago

6.9.104

12 months ago

5.5.76

1 year ago

5.5.62

1 year ago

5.5.63

1 year ago

5.5.60

1 year ago

1.2.18

1 year ago

5.5.61

1 year ago

1.2.19

1 year ago

6.7.92

1 year ago

6.7.93

12 months ago

6.7.94

12 months ago

6.7.95

12 months ago

6.7.96

12 months ago

6.7.97

12 months ago

1.2.20

1 year ago

7.10.106

12 months ago

1.2.23

1 year ago

5.5.68

1 year ago

1.2.21

1 year ago

5.5.69

1 year ago

1.2.22

1 year ago

5.5.66

1 year ago

5.5.67

1 year ago

5.5.64

1 year ago

6.7.91

1 year ago

5.5.65

1 year ago

5.5.51

1 year ago

5.5.52

1 year ago

5.5.50

1 year ago

5.5.59

1 year ago

5.5.57

1 year ago

5.5.58

1 year ago

5.5.55

1 year ago

5.5.56

1 year ago

5.5.53

1 year ago

5.5.54

1 year ago

1.2.17

1 year ago

1.2.13

1 year ago

1.2.16

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

1.2.12

1 year ago

1.2.11

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.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago