V
V
VIGF2019-05-24 01:39:34
JavaScript
VIGF, 2019-05-24 01:39:34

How to connect the plugin to PIXI?

Trying to include the pixi-spine plugin along with pixi.js

import * as PIXI from 'pixi.js';
import Spine from 'pixi-spine';

As a result, the console writes an error from pixi-spine -
PIXI is not defined
All js files are collected by webpack
How to link the library with the plugin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VIGF, 2019-05-25
@VIGF

I connected PIXI via webpack.config, and imported spine-pixi via standard import. Start to work!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question