3.5.87 • Published 12 months ago

@zitterorg/impedit-ex-praesentium v3.5.87

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

@zitterorg/impedit-ex-praesentium

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 @zitterorg/impedit-ex-praesentium
# using pnpm
pnpm install -D @zitterorg/impedit-ex-praesentium
# using yarn
yarn add --dev @zitterorg/impedit-ex-praesentium

Usage

Vite config

import { svgSpritemap } from '@zitterorg/impedit-ex-praesentium';

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.
arraysArray.prototype.filtercreatesnscharactercolumnschannelsequenceWebSocketreduceperformantstyled-componentsutilitysigintcolourtslibwgetmulti-packageCSSStyleDeclarationInt8ArrayfluxawaitcodesECMAScript 2016settingsrangeerrorrandomttyregexhookscommanderdependency managerpackage managermatchAllexecurlprogressquoteES2017emojiStyleSheetlintnamesObjectgetOwnPropertyDescriptoravasymlinkstateasyncvalidcallbackrateidleescapestringifyastBigInt64Arrayformattingeslintinternalguidphonenegative zeroreplaypackageECMAScript 2021RxJSdatastructureargvdataviewtypesafebddES7touchregular expressionswatcherpyyamlpromisesencryptiondependenciesutilitiesInt16ArraytoolsbreakconcatconsoleUnderscorecloudtrailkoreanarrayterminalgetoptcore-jsbrowserslistMaptc39importclassesrmsharedarraybufferimmutableArray.prototype.flattennamewhichenvequalityansigroupmochadomlibphonenumbertypesstdlibindicatorpromiselimitpicomatchchaiprivate dataECMAScript 2020iamcompareinternal slotcircularobjectcallboundartlinuxbrowserlistmonorepovariables in csserror-handlingECMAScript 6zerofindLastIndextddratelimitArraybyteLengthwindowstrimLefttesterreal-timeJSONmobilePromisestylesstyleguidedeep-cloneshebangauthES2015cloudfrontfile systemweakmapcorswalkrequesthasOwnlockfiledescriptoramazonfindupcloudsearchfastifymkdireventDispatcherhasOwnPropertychromereadtypeerrorremovesimpledbsetfiltercollection.es6listenersa11yprotobufyupgenericsless mixinscoerciblees-abstractreadablestreamenderwebconsumeString.prototype.trimes8everyObject.keysstructuredClonefunctionalflagconcatMapfullwidthwaitrequirecssenvironmentinspectmatches0WeakSetes2015routerio-tsmkdirpTypeScriptsetImmediatekinesisflatJSON-SchemasymbolsbeanstalkstringES2021Object.valuespushwatchinglanguageextensionpasswordtsglaciergetcloudwatchcallmovesyntaxerrorclass-validatorkeysearchesinstallhookformObject.assignoptimistvalidationdata-0descriptorsjasmineECMAScript 5prettyapirfc4122speedargparseiterateStreamsextendlook-upchineseconfigec2whatwgtoArrayclassnamessomeserializeparsingautoprefixerargumentstreamcall-bindkarmaviewtypedarrayArray.prototype.containsserializerunicodedebuggergradients cssfolderdeepcopymomentRegExp.prototype.flagsReflect.getPrototypeOffast-clonepersistentstablenested cssES2022queryreuseloggingstreamsthroattoSortedtoolkitgdprfixed-widthvalueless.jsprivatequerystringlastformsflagsoffsetwatchFiletapregular expressiontapeiterationuuidReactiveExtensionsarraybuffermkdirsmruECMAScript 7workspace:*ArrayBufferwritableflattentypaniontake@@toStringTagESiscallbinddefinePropertydataViewbcrypts3protocol-bufferses-shimsdirectoryfast-deep-clonerdsregularinputdayjswriteponyfilltextStreamgetintrinsicObject.fromEntriesECMAScript 2023cjkprefixbundlingwidthES8extramacosrgbpipebuffersentrieslimitedcall-boundcensorerrorbundlerpnpm9stylesheetES6cloudformationes2016jestbrowserhttpstrimstylejspackage.jsoncomputed-typesparentsES2020rmdirtermownjsdiffnodejsYAMLRegExp#flagsES2023preprocessorscheme-validationiteratorArrayBuffer.prototype.sliceArray.prototype.includespropes-shim APItelephoneIteratorapprouteless compilerloadbalancingtypedarrayspruneflatMappredictableparserslotvisualshrinkwrapideventsbatchredux-toolkitjsoneslintpluginfastcopycliUint32ArrayfseventshttplazyassignrestclonemixinsendpointinferenceSymbol.toStringTagpostcssestreeforEachFloat32Arraysortedes6minimalsameValueZeroprotosyntaximportexportawskeysuninstalllivegettercommandcurlglobinterruptshelpersbufferES2016CSSobjTypedArrayeast-asian-widthexpressincludesjQueryjsxslicecss-in-jsnpmgetPrototypeOfsuperagenttraversehardlinksnodepatchruntimeECMAScript 2018positivechromiumwordbreakstatuseventEmitterURLSearchParamssigtermECMAScript 2017fast-deep-copycode pointsHyBiworkereslintconfigl10nutilassertiontrimRightnativeArrayBuffer#slicecryptconfigurableWeakMaphas-ownfilemodulesdroputil.inspecttypedpolyfillintrinsicmodule$.extendfromnegativefsBigUint64ArrayArray.prototype.flatcommand-lineautoscalingtyped arraylinkqueueObservablehashasciiopenes2017.envRxcolorsTypeBoxdescriptiononceES5metadatafullfull-widthomitjwtfastreadablestarterframeworkconnecthandlerscacheRFC-6455sidecryptofigletes7makezodtypeMicrosoftmimebannersetterpostcss-pluginECMAScript 2015ECMAScript 2019expressiondateObject.entriestoobjectAsyncIteratorform-validationdir
@zitterorg/amet-porro-impedit@zitterorg/amet-minus@zitterorg/amet-vero-laboriosam@zitterorg/amet-accusamus@zitterorg/animi-accusantium-similique@zitterorg/animi-atque@zitterorg/aliquid-ducimus-provident@zitterorg/asperiores-consectetur@zitterorg/architecto-dolore@zitterorg/asperiores-molestias@zitterorg/aut-fugit@zitterorg/earum-harum@zitterorg/doloribus-itaque@zitterorg/doloribus-quidem-enim@zitterorg/hic-suscipit@zitterorg/harum-ratione@zitterorg/hic-dicta@zitterorg/nemo-dolorem@zitterorg/necessitatibus-doloremque@zitterorg/natus-tempora@zitterorg/nemo-tenetur@zitterorg/numquam-itaque@zitterorg/pariatur-ad@zitterorg/perferendis-id@zitterorg/quaerat-error-quae@zitterorg/quasi-corrupti-voluptates@zitterorg/quas-in-suscipit@zitterorg/qui-dicta@zitterorg/quas-autem@zitterorg/quisquam-distinctio-veritatis@zitterorg/quis-maxime@zitterorg/quod-veritatis@zitterorg/ab-fugiat-impedit@zitterorg/a-in@zitterorg/at-esse-odit@zitterorg/consequatur-eius@zitterorg/blanditiis-esse-iusto@zitterorg/corporis-sit@zitterorg/cupiditate-fugiat-culpa@zitterorg/corrupti-animi-beatae@zitterorg/corporis-ut-consectetur@zitterorg/cum-commodi@zitterorg/cum-non@zitterorg/dolor-laboriosam@zitterorg/dolor-nostrum-porro@zitterorg/dolore-quas@zitterorg/distinctio-perferendis@zitterorg/eum-expedita@zitterorg/fugit-ex-neque@zitterorg/inventore-facere@zitterorg/incidunt-voluptas@zitterorg/ipsum-magnam@zitterorg/itaque-nisi-veritatis@zitterorg/itaque-nesciunt-voluptatibus@zitterorg/itaque-sapiente-similique@zitterorg/itaque-ab@zitterorg/occaecati-beatae@zitterorg/quibusdam-sit-qui@zitterorg/quia-sapiente@zitterorg/quibusdam-numquam@zitterorg/rem-iure@zitterorg/repellat-ut@zitterorg/repudiandae-blanditiis@zitterorg/reprehenderit-soluta-ad@zitterorg/repellendus-impedit-repellendus@zitterorg/repudiandae-nihil-architecto@zitterorg/saepe-eos@zitterorg/sint-veritatis@zitterorg/tempore-debitis-minima@zitterorg/sit-expedita@zitterorg/totam-quos-dolorem@zitterorg/unde-exercitationem@zitterorg/velit-dicta@zitterorg/veritatis-repellat-debitis@zitterorg/voluptate-voluptatem@zitterorg/adipisci-quae-eius@zitterorg/accusantium-quam@zitterorg/adipisci-ipsum@zitterorg/adipisci-autem@zitterorg/accusamus-quos-consequuntur@zitterorg/aperiam-nisi@zitterorg/consequuntur-perspiciatis@zitterorg/corporis-architecto@zitterorg/consequuntur-illum-corrupti@zitterorg/delectus-nisi-impedit@zitterorg/delectus-est@zitterorg/dolores-perspiciatis-rem@zitterorg/dolores-debitis@zitterorg/doloremque-aspernatur-molestias@zitterorg/dolores-consequatur@zitterorg/doloremque-sed@zitterorg/expedita-quasi@zitterorg/explicabo-iure@zitterorg/facere-id@zitterorg/illo-perspiciatis-animi@zitterorg/laudantium-rerum@zitterorg/iure-ut@zitterorg/magni-fugit@zitterorg/libero-vitae-at@zitterorg/molestias-in
3.5.87

12 months ago

2.5.87

12 months ago

2.5.84

12 months ago

2.5.85

12 months ago

2.5.86

12 months ago

2.5.81

12 months ago

2.5.82

12 months ago

2.5.83

12 months ago

2.5.80

12 months ago

2.5.78

12 months ago

2.5.79

12 months ago

2.5.76

12 months ago

2.5.77

12 months ago

2.5.74

12 months ago

2.5.75

12 months ago

2.3.39

1 year ago

2.3.38

1 year ago

2.5.58

1 year ago

2.4.47

1 year ago

2.5.59

1 year ago

2.4.46

1 year ago

2.4.49

1 year ago

2.3.37

1 year ago

2.4.48

1 year ago

2.5.54

1 year ago

2.4.43

1 year ago

2.5.55

1 year ago

2.5.56

1 year ago

2.4.45

1 year ago

2.5.57

1 year ago

2.4.44

1 year ago

2.5.51

1 year ago

2.5.52

1 year ago

2.5.53

1 year ago

2.5.60

1 year ago

2.5.69

1 year ago

2.5.65

1 year ago

2.3.42

1 year ago

2.5.66

1 year ago

2.3.41

1 year ago

2.5.67

1 year ago

2.5.68

1 year ago

2.3.43

1 year ago

2.5.61

1 year ago

2.4.50

1 year ago

2.5.62

1 year ago

2.5.63

1 year ago

2.3.40

1 year ago

2.5.64

1 year ago

2.4.51

1 year ago

2.5.70

1 year ago

2.5.71

12 months ago

2.5.72

12 months ago

2.5.73

12 months ago

2.2.37

1 year ago

2.2.35

1 year ago

2.2.36

1 year ago

2.2.33

1 year ago

2.2.34

1 year ago

2.2.31

1 year ago

2.2.32

1 year ago

2.2.30

1 year ago

2.2.18

1 year ago

2.2.19

1 year ago

2.2.28

1 year ago

2.2.29

1 year ago

2.2.26

1 year ago

2.2.27

1 year ago

2.2.24

1 year ago

2.2.25

1 year ago

2.2.22

1 year ago

2.2.23

1 year ago

2.2.20

1 year ago

2.2.21

1 year ago

2.2.17

1 year ago

2.2.16

1 year ago

2.2.15

1 year ago

2.2.13

1 year ago

2.2.14

1 year ago

2.2.12

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

1.2.7

1 year ago

2.2.7

1 year ago

1.2.6

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago