Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Asset folder building problem #54

Closed
henriquelalves opened this issue Apr 18, 2017 · 2 comments
Closed

Asset folder building problem #54

henriquelalves opened this issue Apr 18, 2017 · 2 comments

Comments

@henriquelalves
Copy link

npm: 4.0.5v; LinuxMint 17.2 Cinnamon.

I just installed this generator, and something I was troubled at is that "npm run build" command won't work properly if you don't create a subfolder also named "assets" inside you "assets" folder to put your files there; otherwise what will happen is that all your asset files will be "built" on the root folder of the project, and Phaser won't find them when loading.

This also happens with the generator game example, which means you can't test it from scratch just by generating and building it.

@henriquelalves
Copy link
Author

I'm a total newbie at npm, but the problem is easily solvable by changing line 13 at "package.json" from
"copy:assets": "ncp assets build/",
to
"copy:assets": "ncp assets build/assets/",

I'm not sure if this is the best solution or I was just mistaken somewhere during the npm built, though.

@julien
Copy link
Owner

julien commented Apr 19, 2017

Hi @henriquelalves,

Thanks for reporting this issue and providing the solution, and sorry for the late reply.
I tested your changes, and v.0.50.0 is published on npm

@julien julien closed this as completed in 90e5acb Apr 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants