Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy creates wrong file paths #59

Closed
eladonline opened this issue Jan 11, 2018 · 3 comments
Closed

deploy creates wrong file paths #59

eladonline opened this issue Jan 11, 2018 · 3 comments

Comments

@eladonline
Copy link

When I'm running the game in dev mode everything works fine
But after deployment, I enter build directory and run the index file.
And getting errors of files not found .
It seems that the 'deploy' doesn't arrange the paths right .

Wrong path
image

Right path!
image

This is the main directory path:

C:\Users\admin\Desktop\zelda diamond collector\phaser-es6-webpack

Here is the hierarchy:
image

@eladonline eladonline changed the title deploy creates wrong file links deploy creates wrong file paths Jan 11, 2018
@eladonline
Copy link
Author

I manage to overcome the problem, but the issue should still be fixed.
The file that imported the assets, had the path "../../assets/etc..." which works fine in dev env .
Now, the vendor.bundle sits in "root/js", and opening it from index file will try to go to
"not exist/not exist/root"
I solved it by changing "../../assets/etc..." to "./assets/etc..." but I guess it isn't a good behavior

@lean
Copy link
Owner

lean commented Jan 11, 2018

Thanks @eladonline. This is not a good behavior. I will see it

@lean lean added bug and removed bug labels Jan 11, 2018
@lean
Copy link
Owner

lean commented Jan 12, 2018

@eladonline seems like you are not using a web server. Your paths does not be "file://".
Please, try to serve your files with Browsersyc.
Run inside the build folder: browser-sync start --server

@lean lean closed this as completed Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants