Jump to content

Small errors in RequireJS template


Serapth
 Share

Recommended Posts

I am not an avid Github guy, so instead I'm reporting here instead of simply submitting a patch.

 

There are two small mistakes in the RequireJS template that prevent the resulting code from working.

 

In the file https://github.com/photonstorm/phaser/blob/master/resources/Project%20Templates/RequireJS/src/main.js

 

The line:

   paths: {        	phaser:   'libs/phaser/phaser.min',        },

Should be changed to:

   paths: {        	phaser:   'libs/phaser/build/phaser.min'        },

Note that path change and comma removal.

Link to comment
Share on other sites

By the way, if anyone is interested in using Phaser with RequireJS I've done up a bit of a guide on the subject.  It walks through pulling (just) the template from the Phaser repository, running bower and walks through the resulting project.

 

 

To be honest, I'm not entirely certain there is a win here.  Certainly if you have lots of dependencies or as your code becomes extremely complex, but generally all Javascript package solutions start to seem more trouble than they are worth for small to medium sized projects.  I'm still on the fence here.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...