-
Notifications
You must be signed in to change notification settings - Fork 41
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
Source map reference fails in Edge/IE 11 #21
Comments
Since the plugin is just a wrapper for |
Closing as not a plugin issue. |
The author of Would it be possible to prepend a newline character ( |
It is I guess. |
Problem
Microsoft Edge doesn't attempt to load the
.map
file due to the location of the source map comment in the CSS output.This is somewhat a known phenomenon (with both CSS and JavaScript): https://stackoverflow.com/q/34687049/404623
Reproduce
main.less
index.html
Run lessc with the clean-css plugin:
Output (
main.css
)Upon loading index.html in Microsoft Edge and opening Debugger in the F12 Developer Tools, there is no request made to the server for the map file, and inspect element shows
main.css
references in the Styles panel instead ofmain.less
Expected results
Edge should attempt to load the
main.css.map
file and refer to the code in themain.less
file in the Styles panel in the F12 Developer Tools.Expected output of
main.css
(note the newline)Manually editing the files to add the newline character fixes the problem but defeats the purpose of the build tool.
The text was updated successfully, but these errors were encountered: