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

[Question] What's the point of sourceMap: true #271

Closed
kud opened this issue Nov 10, 2017 · 9 comments
Closed

[Question] What's the point of sourceMap: true #271

kud opened this issue Nov 10, 2017 · 9 comments

Comments

@kud
Copy link

kud commented Nov 10, 2017

Hello,

When I activate sourceMaps, I've got this result:

Source map error: Error: sourceMapURL could not be parsed
Resource URL: blob:http://xxxx/b82d1808-4542-8b45-a829-b13f36458b84
Source Map URL: data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9rdWQvUHJvamVjdHMvX2NvbnRleHRlL2xvaXMtd2ViYXBwL3NyYy9zdHlsZXMvYm94LW1vZGVsLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNIO0VBQ0UsdUJBQXVCO0NBQ3hCOztBQUVEOzs7RUFHRSxvQkFBb0I7Q0FDckIiLCJmaWxlIjoiYm94LW1vZGVsLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogbW9yZSBpbmZvIHRoZXJlOiBodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi9kb2NzL1dlYi9DU1MvYm94LXNpemluZ1xuICovXG5odG1sIHtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbn1cblxuKixcbio6YmVmb3JlLFxuKjphZnRlciB7XG4gIGJveC1zaXppbmc6IGluaGVyaXQ7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9

What sourceMaps in this loader should do?

@kud kud changed the title What the point of sourceMaps: true [Question] What the point of sourceMaps: true Nov 10, 2017
@michael-ciniawsky
Copy link
Member

Where does the source map posted come from ? Where does the Error come from ?

@kud
Copy link
Author

kud commented Nov 11, 2017

I've no idea. I've just activated it and this is what I've got in the console of Firefox Nightly.

@kud kud changed the title [Question] What the point of sourceMaps: true [Question] What's the point of sourceMaps: true Nov 11, 2017
@alexander-akait
Copy link
Member

@kud seems bug in Firefox, can you create minimum reproducible test repo?

@kud
Copy link
Author

kud commented Dec 7, 2017

I'm sorry, this is a https://github.com/webpack-contrib/css-loader issue in fact.

@kud
Copy link
Author

kud commented Dec 7, 2017

You can see my issue here: webpack-contrib/css-loader#640

However, I don't see the point yet of sourceMap on THIS loader? Can you explain it to me please? O:)

@kud kud changed the title [Question] What's the point of sourceMaps: true [Question] What's the point of sourceMap: true Dec 7, 2017
@alexander-akait
Copy link
Member

alexander-akait commented Dec 7, 2017

@kud css-loader generate source maps, but you can not want to insert them, honestly it does not make much sense, but this is a standard practice for all loaders what can generate or work with source maps.

@kud
Copy link
Author

kud commented Dec 7, 2017

I mean source maps for style-loader, not css-loader where I can see the point as it shows the url of the css file.

Or maybe did you make a mistake with the name of the loader you typed?

@alexander-akait
Copy link
Member

alexander-akait commented Dec 7, 2017

@kud when you use sourceMap: true for style-loader - you say what style-loader should insert soucre map url or content to style tag

@kud
Copy link
Author

kud commented Dec 7, 2017

Ooooooooh, okay. Thank you!

@kud kud closed this as completed Dec 7, 2017
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

3 participants