pixi.js / packages / loaders /
@Yevhenii Huselietov Yevhenii Huselietov authored on 21 Jun 2019
Matt Karl committed on 21 Jun 2019
..
src Minor doc fixes for TypeScript definitions (#5637) 5 years ago
test Fix types in documentation (#5345) 6 years ago
LICENSE Update LICENSE files to 2018 (#4585) 7 years ago
README.md Renamed LoaderPlugin to AppLoaderPlugin (#5396) 6 years ago
package.json Bump floss for 3.0 & codecov integration (#5792) 5 years ago
README.md

@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(() => {});