8.10.128 • Published 10 months ago

@ellentorg/quas-molestiae-vel v8.10.128

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

11 months ago

5.6.90

11 months 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

12 months ago

5.6.83

12 months ago

5.6.86

12 months ago

5.6.85

12 months ago

5.6.82

12 months ago

5.6.81

12 months ago

8.10.111

10 months ago

8.10.112

10 months ago

8.10.113

10 months ago

8.10.114

10 months ago

8.10.115

10 months ago

2.3.35

1 year ago

8.10.116

10 months ago

2.3.34

1 year ago

8.10.117

10 months ago

2.3.37

1 year ago

8.10.118

10 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

11 months ago

5.6.87

11 months ago

8.10.110

10 months ago

5.6.89

11 months ago

8.10.119

10 months ago

8.10.122

10 months ago

4.4.43

1 year ago

8.10.123

10 months ago

8.10.124

10 months ago

8.10.125

10 months ago

8.10.126

10 months ago

8.10.127

10 months ago

8.10.128

10 months ago

8.10.120

10 months ago

8.10.121

10 months ago

3.4.39

1 year ago

5.4.45

1 year ago

6.8.97

11 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

12 months ago

3.3.39

1 year ago

5.5.81

12 months ago

6.9.99

11 months ago

6.9.98

11 months ago

6.9.97

11 months ago

5.5.73

12 months ago

5.5.74

12 months ago

5.5.71

12 months ago

5.5.72

12 months ago

5.5.70

12 months ago

7.10.108

11 months ago

7.10.107

11 months ago

6.10.106

11 months ago

7.10.109

11 months ago

6.9.103

11 months ago

6.6.91

11 months ago

7.10.110

11 months ago

6.9.102

11 months ago

6.9.101

11 months ago

6.9.100

11 months ago

1.3.24

1 year ago

1.3.25

1 year ago

5.5.79

12 months ago

1.3.23

1 year ago

5.5.77

12 months ago

6.9.106

11 months ago

5.5.78

12 months ago

6.9.105

11 months ago

5.5.75

12 months ago

1.3.26

1 year ago

6.9.104

11 months ago

5.5.76

12 months 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

11 months ago

6.7.93

11 months ago

6.7.94

11 months ago

6.7.95

11 months ago

6.7.96

11 months ago

6.7.97

11 months ago

1.2.20

1 year ago

7.10.106

11 months ago

1.2.23

1 year ago

5.5.68

12 months ago

1.2.21

1 year ago

5.5.69

12 months 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

11 months 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