open-index/open-npm huggingface dataset:
npm package: @jebibot/skinview-utils
Description: Utilities for working with Minecraft skins
Author: Haowei Wen
Latest version: 0.8.0

skinview-utils
========

[![CI Status](https://img.shields.io/github/workflow/status/bs-community/skinview-utils/CI?label=CI&logo=github&style=flat-square)](https://github.com/bs-community/skinview-utils/actions?query=workflow:CI)
[![NPM Package](https://img.shields.io/npm/v/skinview-utils.svg?style=flat-square)](https://www.npmjs.com/package/skinview-utils)
[![MIT License](https://img.shields.io/badge/license-MIT-yellowgreen.svg?style=flat-square)](https://github.com/bs-community/skinview-utils/blob/master/LICENSE)
[![Gitter Chat](https://img.shields.io/gitter/room/TechnologyAdvice/Stardust.svg?style=flat-square)](https://gitter.im/skinview3d/Lobby)

Utilities for working with Minecraft skins
npm package: @jebka/next-svg-sprite-loader
Description: Load SVGs into webpack and split them into sprites at will
Author: pavel@zak.global
Latest version: 1.1.7
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@jebka/next-svg-sprite-loader`

> Integrate [@jebka/webpack-svg-sprite-loader](https://github.com/just-paja/svg-sprites/tree/master/packages/webpack-svg-sprite-loader) into Next.js configuration

This is just a convenience package to make @jebka/webpack-svg-sprite-loader
work with less configuration. All the steps can be done manually. See the [docs of
@jebka/webpack-svg-sprite-loader](https://github.com/just-paja/svg-sprites/tree/master/packages/webpack-svg-sprite-loader).

# Installation

```
npm install --save-dev @jebka/next-svg-sprite-loader
```

# Configuration

The plugin amends the webpack config for Next.js, so it needs to be called
inside the webpack config hook function.

The convenience function mutates the config and also returns the same instance.

```javascript
import { configSvgSprites } from "@jebka/next-svg-sprite-loader";

export default {
  webpack(config) {
    return configSvgSprites(config, {
      // SvgSpritePluginOptions
    });
  },
};
```

# Manual Next.js configuration

See [the code](./index.ts), it has inline commentary.
npm package: @jeboehm/vite-plugin-graphql
Description: Imports .graphql files as persistent query extension or as they are
Author: Jeffrey Boehm
Latest version: 1.0.3

# vite-plugin-graphql
[![Node.js CI](https://github.com/jeboehm/vite-plugin-graphql/actions/workflows/test.yaml/badge.svg)](https://github.com/jeboehm/vite-plugin-graphql/actions/workflows/test.yaml)

This plugin is used to import GraphQL queries.

## Features
- Import normalized queries as string type
- Collect all used queries / mutation in the application and transmit only hashes to save bandwidth using persistent queries
- Builds a persistent query hash map for use on server side
- Automatically add `__typename` to requested types in queries

## Getting started
Install the plugin:

```bash
npm install --save-dev @jeboehm/vite-plugin-graphql
```

Add the plugin to your `vite.config.js`:

```js
import { defineConfig } from 'vite';
import VitePluginGraphQL from '@jeboehm/vite-plugin-graphql';

export default defineConfig(({mode}) => {
  return {
    plugins: [
        VitePluginGraphQL({
            hashMap: {
                enabled: mode === 'production',
                path: './queryHashMap.json',
            },
            queries: {
                usePersistentQuery: mode === 'production',
                addTypename: true,
            }
        }),
    ],
  };
});
```

## Usage

```js
// query is the default export
import {query, queryId} from './graphql/getUsers.graphql';

// query is either an object or string
console.log('Query:', query);
console.log('Query ID:', queryId);
```