GithubHelp home page GithubHelp logo

pixi-js-starter's Introduction

Pixi JS Starter

This is my own starter template for PixiJS projects.

First run npm install. The project will be ready to go with Typescript definitions enabled.

After that, npm run dev will run the Typescript compiler, build the project with ESBuild, and start a local server with serve. npm run build will compile and build the project, but forego running the web server.

Tips and FAQ

My assets aren't loading.

This project uses ESBuild, not webpack, so your static assets like sound effects, spritesheets etc should be placed in the dist directory, not src. src should only contain your Typescript files.

But ESBuild does support external file loading.

Yeah, but I couldn't figure it out.

Why not use webpack?

I initially did, but it was way too slow. On my machine webpack builds were taking upwards of 15 seconds. ESBuild is significantly faster.

Hot reload?

I initially had a hot-reloading dev script using nodemon but it was acting weird and I couldn't figure it out.

pixi-js-starter's People

Contributors

486dx2-boomer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.