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

Handle inline sourcemaps #5

Open
IvanSanchez opened this issue Jan 22, 2016 · 0 comments
Open

Handle inline sourcemaps #5

IvanSanchez opened this issue Jan 22, 2016 · 0 comments

Comments

@IvanSanchez
Copy link
Member

The current logic uses sander to read a filename whenever the sourceMappingURL= regexp matches.

However, that regexp also matches inline sourcemaps like:

/*# sourceMappingURL=data:application/json;base64,aaaaaaaaaaaaaaaaaaaa== */

There is a need for parsing data: URLs (base64-decode them, then JSON.parse() them).

In particular, the gobble-postcss transform generates inline sourcemaps by default, which are a problem if they are concatenated later.

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

1 participant