DEMO
https://evofan.github.io/pixijs_script_anime_v5_webpack/dist/
USAGE(test on Windows10)
Download ZIP(pixijs_script_anime_v5_webpack-master.zip)
cd folder_name
(The folder where you unzipped the zip)
npm install
npm run build
npm run start
open http://localhost:8080/
npm install
If you get an this error, do the following.
npm i -f
Skipping 'fsevents' build as platform win32 is not supported
npm audit fix
npm install
npm run build
npm run start
If you get an this error, do the following.
npm i -D webpack webpack-cli
npm i -D webpack webpack-dev-server
npm run build
npm run start
reference
PIXI.Sprite v5.1.0
https://pixijs.download/v5.1.0/docs/index.html
PIXI.Ticker
https://pixijs.download/v5.1.0/docs/PIXI.Ticker_.html
PIXI.Loader
https://pixijs.download/v5.1.0/docs/PIXI.Loader.html
v5 Migration Guide
https://github.com/pixijs/pixi.js/wiki/v5-Migration-Guide
Getting Started with Pixi.js and webpack
https://jameskiefer.com/posts/getting-started-with-pixi.js-and-webpack/
Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"}...
ncu -u
npm i -f
npm i --f
"dependencies": { "fsevents": "^2.1.2" // ← 1.2.9 }
Fixed in the mode option setting of webpack.config.js
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value.
Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
main.js (539 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (539 KiB)
main.js
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/