4.6.136 • Published 10 months ago

@ellentorg/officiis-reprehenderit-quis v4.6.136

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

10 months ago

4.5.121

10 months ago

4.5.122

10 months ago

4.5.123

10 months ago

3.5.99

11 months ago

3.5.98

11 months ago

3.5.97

11 months ago

1.1.30

1 year ago

4.5.117

11 months ago

1.1.34

1 year ago

4.5.118

11 months ago

1.3.58

1 year ago

1.1.33

1 year ago

4.5.119

10 months ago

1.1.32

1 year ago

1.1.31

1 year ago

4.5.114

11 months ago

4.5.115

11 months ago

1.3.59

1 year ago

4.5.116

11 months ago

2.4.81

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

12 months ago

2.4.82

12 months ago

2.4.84

12 months ago

4.5.128

10 months ago

4.5.129

10 months ago

4.5.124

10 months ago

4.5.125

10 months ago

4.5.126

10 months ago

4.5.127

10 months ago

3.4.84

12 months ago

3.4.85

12 months ago

3.4.86

12 months ago

3.4.87

12 months ago

3.4.88

12 months ago

3.4.89

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

11 months ago

1.2.49

1 year ago

1.0.26

1 year ago

3.5.102

11 months ago

1.0.25

1 year ago

1.2.47

1 year ago

1.0.24

1 year ago

3.5.100

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

11 months ago

3.4.95

11 months ago

3.4.96

11 months ago

3.4.97

11 months ago

3.4.90

12 months ago

2.3.79

12 months ago

1.2.52

1 year ago

3.4.91

11 months ago

2.3.78

12 months ago

1.2.53

1 year ago

3.4.92

11 months ago

1.2.50

1 year ago

3.4.93

11 months ago

1.2.51

1 year ago

1.2.56

1 year ago

1.2.57

1 year ago

2.3.77

12 months ago

1.2.54

1 year ago

2.3.76

12 months ago

1.2.55

1 year ago

1.0.30

1 year ago

1.2.58

1 year ago

3.5.114

11 months ago

2.3.80

12 months ago

4.6.136

10 months ago

4.6.134

10 months ago

4.6.135

10 months ago

1.3.71

1 year ago

1.3.72

1 year ago

1.3.70

1 year ago

1.3.75

12 months ago

1.3.76

12 months ago

1.3.73

1 year ago

1.3.74

12 months ago

2.3.81

12 months ago

3.5.105

11 months ago

3.5.106

11 months ago

3.5.103

11 months ago

3.5.104

11 months ago

3.5.109

11 months ago

3.5.107

11 months ago

3.5.108

11 months ago

4.6.129

10 months ago

4.6.132

10 months ago

4.6.133

10 months ago

4.6.130

10 months ago

4.6.131

10 months ago

1.2.34

1 year ago

1.2.35

1 year ago

3.5.112

11 months ago

1.2.38

1 year ago

3.5.113

11 months ago

1.2.39

1 year ago

3.5.110

11 months ago

1.2.36

1 year ago

3.5.111

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