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

Problems with source maps #174

Closed
Darmikon opened this issue Feb 7, 2014 · 2 comments
Closed

Problems with source maps #174

Darmikon opened this issue Feb 7, 2014 · 2 comments

Comments

@Darmikon
Copy link

Darmikon commented Feb 7, 2014

I tried to create source maps using Grunt lmd.
index.lmd.map
"sources":["i18n\en.json","js\common.js","js\main.js","js\views\App.js"]
Neither Chrome nor Firefox inspector can see such URLs.
If I change manually all double backslashes to slashes
"sources":["i18n/en.json","js/common.js","js/main.js","js/views/App.js"]
browser's inspectors see source files. Is any option to create Slash dividers in URLs of sources instead of Double Backslashes?

And the second question: can I get in my source map empty value of sourceRoot?
"sourceRoot":"". I want to get relative URLs. If I set sourcemap_www: "" in Grunt.js - I receive "sourceRoot":"/" in my source map. If I manually set "sourceRoot":"" in index.lmd.map - relative URLs work fine.

Thank you!

@azproduction
Copy link
Owner

Thank you and sorry for waiting for 2 days.

Is any option to create Slash dividers in URLs of sources instead of Double Backslashes?

I will replace back slashes with front slashes in build time. Anyway windows supports both slashes.

I want to get relative URLs. If I set sourcemap_www: "" in Grunt.js - I receive "sourceRoot":"/" in my source map.

I will apply default value "/" only if sourcemap_www is undefined, so you can use "" or "./" for relative URLs.

azproduction added a commit that referenced this issue Feb 10, 2014
@azproduction
Copy link
Owner

Fixed lmd@1.11.4

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