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

hem -d breaks spine.map dependency #77

Closed
milesmatthias opened this issue Oct 10, 2013 · 2 comments
Closed

hem -d breaks spine.map dependency #77

milesmatthias opened this issue Oct 10, 2013 · 2 comments

Comments

@milesmatthias
Copy link

When I run hem server I get no errors.
When I run hem server -d, I see the following in the js console every page load:

GET http://localhost:9294/spine.map 404 (Not Found)
@cengebretson
Copy link
Member

currently when running with -d switch, the javascript is left in non compressed format which leaves the sourceMappingURL=spine.map line in place from the spine.js file that is pulled in. So the browser ends up requesting a map file that isn't there. Without the -d switch it will minify everything and that sourceMappingUrl portion is removed.

Since hem combines everything into a single file, would have to come up with a way to merge all the source maps together to match single js file. Definitely doable but will take a bit of finagling to get it fully working. Maybe in the time being the sourceMappingUrl lines should just be removed from the single js file that is created...

@cengebretson
Copy link
Member

closing this as a duplicate of #67

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