Socket
Book a DemoInstallSign in
Socket

@assetpack/plugin-mipmap

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@assetpack/plugin-mipmap

AssetPack plugin for generating mipmaps By default this plugin will generate `@1x` and `@0.5x` resolutions for all images.

latest
Source
npmnpm
Version
0.8.0
Version published
Weekly downloads
148
-38.59%
Maintainers
1
Weekly downloads
 
Created
Source

@assetpack/plugin-mipmap

AssetPack plugin for generating mipmaps By default this plugin will generate @1x and @0.5x resolutions for all images.

This plugin also supports generating mipmaps for Spine atlas files with the spineAtlasMipmap plugin.

Installation

npm install --save-dev @assetpack/plugin-mipmap

Basic Usage

import { mipmap, spineAtlasMipmap } from "@assetpack/plugin-mipmap";

export default {
  ...
  plugins: {
    ...
    mipmap: mipmap(),
    spine: spineAtlasMipmap(),
  },
};

Options

  • template: A template for denoting the resolution of the images. Defaults to @%%x. Note you must use %% to denote the resolution.
  • resolutions: An object containing the resolutions that the images will be resized to. Defaults to { default: 1, low: 0.5 }.
  • fixedResolution: A resolution used if the fix tag is applied e.g. path/to/image{fix}.png or path/to{fix}. Resolution must match one found in resolutions. Defaults to default.
  • tags - An object containing the tags to use for the plugin. Defaults to { fix: "fix" }.

FAQs

Package last updated on 17 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.