Nuxtjs and Pixijs load a JSON in to loader Pixi function

fabsfabs
0
fabsfabs
commented 7 months ago

Hi everyone
I'm quite new with nuxtjs and webpack and I'm facing my first big question about it.
How do I load a JSON spritesheet with loader function of Pixijs in Nuxtjs?

What I try to reach is similar to this example provided by Pixijs https://pixijs.io/examples/#/basics/spritesheet.js

What happen to me is that the spritesheet.json file added to the loader doesn't load actually and few errors are displayed.
Screen Shot 2019-01-18 at 14.42.44.png

Here you can find the final result, not in nuxtjs of course
http://fabiobertozzi.it/portfolio/intro.html

The spritesheet animation is this one below (the dissolving grey panel)
Screen Shot 2019-01-18 at 14.45.41 3.png

Certainly I miss some basic knowledge of nuxtjs and webpack.
Anyone can help me?

Many thanks

0
Informations
Question โ€ข Unresolved
#c8508 - Created 7 months ago