0.8.0 • Published 6 months ago

@assetpack/plugin-mipmap v0.8.0

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

@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" }.
0.8.0

6 months ago

0.7.0

10 months ago

0.6.2

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.6.1

1 year ago

0.3.4

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago