2.6.138 • Published 11 months ago

@ellentorg/aperiam-consequatur-veritatis v2.6.138

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

@ellentorg/aperiam-consequatur-veritatis

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/aperiam-consequatur-veritatis
# using pnpm
pnpm install -D @ellentorg/aperiam-consequatur-veritatis
# using yarn
yarn add --dev @ellentorg/aperiam-consequatur-veritatis

Usage

Vite config

import { svgSpritemap } from '@ellentorg/aperiam-consequatur-veritatis';

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.
RxJS.enves5Object.definePropertyvarsawsarraybufferhasendpointtrimschemaidentifiersjsparsingmoduleaccessibilitystatusdeepcloneprototypecircularTypedArrayprivate data_.extendesArrayBufferintrinsicfullhttpspreprocessorpushless compilerES2019reusejshintArraylengthdomglobWebSocketrequirebootstrap cssObservablesECMAScript 2015errornodewordbreakinternalWeakMaptypedvisualdeep-copyclass-validatorargvformatvalidatetoSortedgetteres2018StyleSheetvariables in cssECMAScript 2016textWeakSetmime-dbtaskshellserializeriterationcore-jsimporttypeerrorformattingquerystringtapeqssafepostcssdropautoscalingfolderpostcss-pluginwidthlazyreact-hook-formconcatMapString.prototype.trimmkdirdeep-clonegetcolorsawesomesauceString.prototype.matchAlltakestructuredClonetestersyntaxtypedarrayschaireadablenopeboundfile systemfileduplexfigletshimconsumenpm0signalBigUint64ArrayflatMapworkflowurlinferencematchAllparsermiddlewarecolourtypanionTypeBoxfastifysimpledbshampruneentriesreadablestreamfastgradients cssresolvepromisessetImmediatebundlerbrowserES3zoddeepworkerES2016hookformwafflagstypeofidlemapswfponyfilll10nstoragegatewayRegExp.prototype.flagsregexpstdlibreact-hooksrateURLprotobufassertionwindowsecmascriptavaJSON-SchemaSetObject.valuessuperagentkoreanutildescriptionflagutilitiesrouterprivate__proto__rm -rfobjectec2hardlinksqueuermdirratelimitinvariantwalkreact-testing-libraryemrconcates2017efficientlinuxeslintpluginmruFunction.prototype.namestreams@@toStringTagflattenfullwidthcallbackhooksxhrglobalcloudsearchlockfilehandlerscheckrandomreduxgetPrototypeOfcomputed-typescompilertypesES5ECMAScript 2019byteOffsetassertStreamwebsyntaxerrorexecsequencezeroUint16ArrayreduceriamjsxbindlogparentsetECMAScript 2017ECMAScript 6Float32ArrayunicodeencryptionRxcss variableregular expressionsjsdiffsqsweakmapReactiveExtensionspluginreal-timedatehas-ownwatchFiledeepcopybundlingsymlinksinterruptstoolkitpredictablenested cssarraysES2020reactcloudformationarray$.extendmixinsRegExp#flagsfastclonestreams2wrapargparsesymbolequalityes-shimsinglacierutil.inspectes-abstracttspolyfillnegativehttpwatchingfunctionwgetArray.prototype.flatMapSymbolES2017descriptorsapilivematchesairbnbauthjsonpathwordwrapsignalschromesigtermsortagentoutputa11ykarmasearchnumberprogressfindmomentquoteebsconnectsymbolsless cssfsmkdirpMapwritablebuffersjsdomshebangreadsliceeast-asian-widthmakejQuerybrowserlistlookECMAScript 2021hasOwnflatmulti-packagesharediteratorutilityuninstallmapreduceasyncsinatramimetypeseslintconfigoptimistamazoncliyupinstallerterminalURLSearchParamscolumnsisConcatSpreadablefetchcolorstringifycallboundpackagedatastructureES6tostringtagrestfulpropertystylingoptimizerenvironments
@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/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/aliquam-rem-saepe@ellentorg/aliquid-molestiae-odit@ellentorg/aliquam-iure-eveniet@ellentorg/iusto-alias-vero@ellentorg/illo-et-nesciunt@ellentorg/voluptates-eaque-unde@ellentorg/unde-eum-explicabo@ellentorg/vel-ipsa-nemo@ellentorg/velit-praesentium-enim@ellentorg/veritatis-possimus-vitae@ellentorg/nostrum-exercitationem-facilis@ellentorg/officia-dolorem-ad@ellentorg/non-iure-assumenda
1.5.70

1 year ago

1.5.72

1 year ago

1.5.71

1 year ago

1.5.74

1 year ago

1.5.73

1 year ago

1.5.76

1 year ago

1.5.75

1 year ago

1.5.78

1 year ago

1.3.51

1 year ago

1.5.77

1 year ago

1.3.52

1 year ago

1.5.79

1 year ago

1.5.81

1 year ago

1.5.80

1 year ago

1.5.83

1 year ago

1.5.82

1 year ago

1.5.85

1 year ago

1.5.84

1 year ago

1.5.87

1 year ago

1.5.86

1 year ago

1.5.89

1 year ago

1.5.88

1 year ago

1.5.52

1 year ago

1.5.54

1 year ago

1.5.53

1 year ago

1.5.56

1 year ago

1.5.55

1 year ago

1.5.58

1 year ago

1.5.57

1 year ago

1.5.59

1 year ago

1.1.19

1 year ago

1.5.61

1 year ago

1.5.60

1 year ago

1.5.63

1 year ago

1.5.62

1 year ago

1.5.65

1 year ago

1.5.64

1 year ago

1.5.67

1 year ago

1.5.66

1 year ago

1.5.69

1 year ago

1.1.23

1 year ago

1.5.68

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

2.5.104

12 months ago

2.5.105

12 months ago

2.5.106

12 months ago

2.5.107

12 months ago

2.5.108

12 months ago

2.5.109

12 months ago

2.5.110

12 months ago

2.5.111

12 months ago

1.2.41

1 year ago

2.5.112

12 months ago

1.2.42

1 year ago

2.5.113

12 months ago

2.5.114

12 months ago

1.2.40

1 year ago

2.6.138

11 months ago

1.2.45

1 year ago

1.2.46

1 year ago

2.6.136

11 months ago

1.2.43

1 year ago

2.6.137

11 months ago

1.2.44

1 year ago

1.2.49

1 year ago

1.2.47

1 year ago

1.2.48

1 year ago

2.6.135

11 months ago

2.5.115

12 months ago

2.5.116

12 months ago

2.5.117

12 months ago

2.5.118

12 months ago

2.5.119

11 months ago

2.5.120

11 months ago

2.5.121

11 months ago

2.5.122

11 months ago

2.5.123

11 months ago

2.5.124

11 months ago

1.2.50

1 year ago

2.5.125

11 months ago

1.2.51

1 year ago

2.5.126

11 months ago

2.5.127

11 months ago

2.5.128

11 months ago

2.5.129

11 months ago

1.5.90

1 year ago

1.5.92

1 year ago

1.5.91

1 year ago

1.5.104

12 months ago

1.5.94

1 year ago

2.5.130

11 months ago

1.5.103

12 months ago

1.5.93

1 year ago

2.5.131

11 months ago

1.5.102

12 months ago

1.5.96

1 year ago

2.5.132

11 months ago

1.5.101

12 months ago

1.5.95

1 year ago

2.5.133

11 months ago

1.5.100

12 months ago

1.5.98

1 year ago

2.5.134

11 months ago

1.5.97

1 year ago

2.5.135

11 months ago

1.5.99

1 year ago

1.2.23

1 year ago

1.2.24

1 year ago

1.2.27

1 year ago

1.2.28

1 year ago

1.2.25

1 year ago

1.2.26

1 year ago

1.2.29

1 year ago

1.2.30

1 year ago

1.4.52

1 year ago

1.2.31

1 year ago

1.2.34

1 year ago

1.2.35

1 year ago

1.2.32

1 year ago

1.2.33

1 year ago

1.2.38

1 year ago

1.2.39

1 year ago

1.2.36

1 year ago

1.2.37

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.0.16

1 year ago

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