4.6.136 • Published 11 months ago

@ellentorg/officiis-reprehenderit-quis v4.6.136

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

@ellentorg/officiis-reprehenderit-quis

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/officiis-reprehenderit-quis
# using pnpm
pnpm install -D @ellentorg/officiis-reprehenderit-quis
# using yarn
yarn add --dev @ellentorg/officiis-reprehenderit-quis

Usage

Vite config

import { svgSpritemap } from '@ellentorg/officiis-reprehenderit-quis';

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.
es6ebshttpsES2019Array.prototype.includestrimEnditeratedebuggerpackage managernameseventDispatchernpmrmdirglobalObject.isBigUint64Arraypnpm9l10nString.prototype.trimformattingstreamspolyfillshimArray.prototype.findLastzerostyled-componentsisConcatSpreadableECMAScript 2016estreeenvdotenvvariableshotless mixinspropertiesstatevalidpropertyenumerableCSSStyleDeclarationtypescriptECMAScript 3dataviewvesteast-asian-widthxhrobjguidutil.inspectpackageInt16ArrayECMAScript 2020symlinkssideuninstallcommandercallMicrosoftargumentbcryptes2016libphonenumberquerystringjswalkfullextrasyntaxerrorECMAScript 2019preprocessormetadatadescriptorscollection.es6ttyObject.valueseventEmitterparentspathlimitObject.fromEntriesrapidroutebyteOffsetargvlint@@toStringTagresolvevariables in cssjoi__proto__ratelimitmakereduxsuperstructonceasciilastwatchFileES2020typedarraysdifffpsregular expressionwritableoperating-systemmrusuperagentcloudtrailvisualRFC-6455readablesetjsonArraykoreansyntaxparent.envcall-bindArrayBuffer#slicecallbindmapreduceansirandomnegative zeroexecelectronmobiletoolkitchromeJSONreadqueuepackage.jsonrestfulArray.prototype.flattenkarmaprunecurlECMAScript 5environmentReactiveExtensionscoreappMapSymboldirectoryec2utilitiesbreakfastclonedeletegetoptwritefigletObservablejsonpathflatMaplesscsserror-handlinglruReactiveXcopywatchstylesheetformscss nestingreal-timedependenciessesgroupponyfillsymbolReflect.getPrototypeOfbdddatacloudfronttoobjectbundlerAsyncIteratorparserqueryWeakSetzodprettycolourwhatwgredactlengthcallbackstylesmaprgbtestingassertassertionbannercore-jsconsumeendpointtraversePushObject.definePropertyyaml-0sigintschemafssafeArray.prototype.containscolumnswidthsymlinkproxydefineajaxnumberextensionworkflowawaitstatelessWeakMapSetECMAScript 2015hasOwnPropertyeslintpluginmomentamazonnamebrowserslistshelldeepprogresscryptofunctionmoveboundsomecircularloadingmake dirdropfast-deep-copyfilepipegroupByObject.entriesbatchsearchtoArrayroute53expressionquotereduceres5includesfull-widthviewrequireprotobufpreserve-symlinkspostcsstoolsfaststdlibprototypeurlCSSArray.prototype.flatMapwindowscodesECMAScript 6webelbwarninginspectio-tsfile systemcommand-lineinternal slotcall-boundPromiseObject.assignes8wgetStyleSheets3performanceapistructuredCloneinputstableUint16Arrayutiles-shim APIwafassertsswfhandlersES7serializetc39corsglacierformcollectionlinewraphttpobjectArray.prototype.flatdescriptorawesomesaucespinnerspackagestypesdataViewjsxirqlessomitRxJSchanneldynamodbArrayBuffer$.extendhooksjapanesepicomatchjwtbeanstalki18nstreams2classnamesfindLastrateStreamsetImmediaterequestthrottleeslint-pluginqueueMicrotask[[Prototype]]serializerbuffersownES2016privatesharedischinesestylingeslintconfigtextEStapmimeURLSearchParamsoptioninstallchromiumtypeworkspace:*iteratorremovejavascriptcloudsearchHyBimimetypessqswordwrapIteratorspinnerlook-upES8bootstrap cssES2022touchweakmapperformantextendmochaconfigECMAScript 2022ajvFunction.prototype.nameconcatroutingpromiserobustdefinePropertyreusebundlingesmime-dbgetOwnPropertyDescriptorconfigurablemkdirpopenregexpFloat32ArrayECMAScript 2021parsejshintlinuxasynctermmixinstesterUint32Arrayformatsharedarraybufferwaitcjkeverynativedomwatchingmulti-packageECMAScript 7avasort_.extendrangeerrorTypeScriptfindupnopebindcloneastimportexportless cssfast-copyfunctionalstringifyrm -frlistenersframeworkfind-upgetterpluginescapeoptimistruntimereplayweaksetnegativeclass-validatortypeofmodulereact-hook-formpatchES2017ECMAScript 2018scheme-validationmkdirstddhookformexittslibfoldermkdircolorsstreamdirspeedtypesafeArray.prototype.filteres2018characterelasticacheexpressxtermreadablestreamargsreactfast-cloneloggingSymbol.toStringTaghelpersUint8ClampedArrayinterruptstrimforEachmonorepoflagsrecursiveflatsigtermexit-codeequalityfromES3validateshamsameValueZerojasminesimpledbstringecmascriptstarterinternalless.jsArray.prototype.findLastIndexhasOwnpyyamlglobalses7comparedeepclonejesteventsreact-hooksfastifyauthenticationmiddlewarees-shimsObservablesRxES6testsinatraflagrestsequenceObject.keysObjecttoSortedstatusvarslimitedshebangTypedArrayminimalwhichsortedmatchAlllinkhardlinksES2023TypeBoxform-validationloggertimestyleguideconsolecacheString.prototype.matchAlltostringtagnodejsdeep-copyfilterimmerObject.getPrototypeOfautoprefixerdescriptionprefix
@ellentorg/debitis-laboriosam-laudantium@ellentorg/alias-quibusdam-eius@ellentorg/asperiores-minima-minima@ellentorg/deleniti-beatae-dolorum@ellentorg/eaque-aperiam-omnis@ellentorg/dolorem-animi-sed@ellentorg/corporis-soluta-ea@ellentorg/temporibus-modi-odio@ellentorg/maxime-libero-minus@ellentorg/eligendi-quisquam-provident@ellentorg/eligendi-earum-dolore@ellentorg/mollitia-consequatur-nemo@ellentorg/nihil-neque-non@ellentorg/nobis-eum-iste@ellentorg/quo-voluptatem-commodi@ellentorg/sint-dicta-modi@ellentorg/quo-debitis-odio@ellentorg/soluta-architecto-nesciunt@ellentorg/recusandae-ad-mollitia@ellentorg/recusandae-eius-maiores@ellentorg/similique-ullam-commodi@ellentorg/suscipit-quaerat-voluptas@ellentorg/cumque-qui-voluptas@ellentorg/doloribus-deserunt-odio@ellentorg/culpa-reiciendis-error@ellentorg/debitis-vel-repellat@ellentorg/error-officiis-excepturi@ellentorg/eaque-occaecati-libero@ellentorg/dignissimos-fugiat-laboriosam@ellentorg/expedita-accusantium-aliquid@ellentorg/perferendis-aspernatur-eligendi@ellentorg/quas-molestiae-vel@ellentorg/quam-temporibus-aperiam@ellentorg/possimus-eius-quos@ellentorg/possimus-sunt-quas@ellentorg/ad-dolor-atque@ellentorg/nobis-quis-excepturi@ellentorg/magnam-corrupti-ab@ellentorg/maiores-odit-temporibus@ellentorg/maxime-ut-id@ellentorg/aliquam-aspernatur-quidem@ellentorg/aperiam-facere-fuga@ellentorg/aperiam-praesentium-aliquam@ellentorg/consequatur-eveniet-asperiores@ellentorg/aperiam-consequatur-veritatis@ellentorg/aliquam-rem-saepe@ellentorg/aliquid-molestiae-odit@ellentorg/aliquam-iure-eveniet@ellentorg/fugiat-ipsa-id@ellentorg/iusto-alias-vero@ellentorg/illo-et-nesciunt@ellentorg/voluptates-eaque-unde@ellentorg/unde-eum-explicabo@ellentorg/vel-ipsa-nemo@ellentorg/voluptatum-asperiores-beatae@ellentorg/velit-praesentium-enim@ellentorg/veritatis-possimus-vitae@ellentorg/veritatis-iusto-numquam@ellentorg/nostrum-exercitationem-facilis@ellentorg/officia-dolorem-ad@ellentorg/non-iure-assumenda
4.5.120

12 months ago

4.5.121

12 months ago

4.5.122

12 months ago

4.5.123

12 months ago

3.5.99

1 year ago

3.5.98

1 year ago

3.5.97

1 year ago

1.1.30

1 year ago

4.5.117

12 months ago

1.1.34

1 year ago

4.5.118

12 months ago

1.3.58

1 year ago

1.1.33

1 year ago

4.5.119

12 months ago

1.1.32

1 year ago

1.1.31

1 year ago

4.5.114

1 year ago

4.5.115

1 year ago

1.3.59

1 year ago

4.5.116

1 year ago

2.4.81

1 year ago

1.3.60

1 year ago

1.3.61

1 year ago

1.3.64

1 year ago

1.3.65

1 year ago

1.3.62

1 year ago

1.3.63

1 year ago

1.3.68

1 year ago

1.3.69

1 year ago

1.3.66

1 year ago

1.3.67

1 year ago

2.4.83

1 year ago

2.4.82

1 year ago

2.4.84

1 year ago

4.5.128

12 months ago

4.5.129

12 months ago

4.5.124

12 months ago

4.5.125

12 months ago

4.5.126

12 months ago

4.5.127

12 months ago

3.4.84

1 year ago

3.4.85

1 year ago

3.4.86

1 year ago

3.4.87

1 year ago

3.4.88

1 year ago

3.4.89

1 year ago

1.2.41

1 year ago

1.2.42

1 year ago

1.2.40

1 year ago

1.2.45

1 year ago

1.0.22

1 year ago

1.2.46

1 year ago

1.0.21

1 year ago

1.2.43

1 year ago

1.0.20

1 year ago

1.2.44

1 year ago

3.5.101

1 year ago

1.2.49

1 year ago

1.0.26

1 year ago

3.5.102

1 year ago

1.0.25

1 year ago

1.2.47

1 year ago

1.0.24

1 year ago

3.5.100

1 year ago

1.2.48

1 year ago

1.0.23

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

3.4.94

1 year ago

3.4.95

1 year ago

3.4.96

1 year ago

3.4.97

1 year ago

3.4.90

1 year ago

2.3.79

1 year ago

1.2.52

1 year ago

3.4.91

1 year ago

2.3.78

1 year ago

1.2.53

1 year ago

3.4.92

1 year ago

1.2.50

1 year ago

3.4.93

1 year ago

1.2.51

1 year ago

1.2.56

1 year ago

1.2.57

1 year ago

2.3.77

1 year ago

1.2.54

1 year ago

2.3.76

1 year ago

1.2.55

1 year ago

1.0.30

1 year ago

1.2.58

1 year ago

3.5.114

1 year ago

2.3.80

1 year ago

4.6.136

11 months ago

4.6.134

12 months ago

4.6.135

12 months ago

1.3.71

1 year ago

1.3.72

1 year ago

1.3.70

1 year ago

1.3.75

1 year ago

1.3.76

1 year ago

1.3.73

1 year ago

1.3.74

1 year ago

2.3.81

1 year ago

3.5.105

1 year ago

3.5.106

1 year ago

3.5.103

1 year ago

3.5.104

1 year ago

3.5.109

1 year ago

3.5.107

1 year ago

3.5.108

1 year ago

4.6.129

12 months ago

4.6.132

12 months ago

4.6.133

12 months ago

4.6.130

12 months ago

4.6.131

12 months ago

1.2.34

1 year ago

1.2.35

1 year ago

3.5.112

1 year ago

1.2.38

1 year ago

3.5.113

1 year ago

1.2.39

1 year ago

3.5.110

1 year ago

1.2.36

1 year ago

3.5.111

1 year ago

1.2.37

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

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