JSPM

  • Created
  • Published
  • Downloads 72459
  • Score
    100M100P100Q163048F
  • License MIT

Load assets and resources

Package Exports

  • @pixi/loaders

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pixi/loaders) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@pixi/loaders

Installation

npm install @pixi/loaders

Usage

Using the loader directly:

import { Loader } from '@pixi/loaders';

const loader = new Loader();
loader.add('path/to/file.jpg');
loader.load(() => {});

Using the loader as an Application plugin:

import { AppLoaderPlugin } from '@pixi/loaders';
import { Application } from '@pixi/app';

Application.registerPlugin(AppLoaderPlugin);

const app = new Application();
app.loader.add('path/to/file.jpg');
app.loader.load(() => {});