source-maps

How do I toggle source mapping in Safari 7?

﹥>﹥吖頭↗ 提交于 2019-11-28 07:14:16
问题 The Safari 7 inspector is marvelously line-mapping compiled javascript back to the coffeescript it came from. There are times, though, when I want to interact directly with the compiled javascript in inspector. How do I toggle source mapping off so I can play with the raw javascript? 回答1: In Safari 7, Source Maps are not something that you have to toggle on or off they are just always on like resources are always available in the web developer tool. If you want to jump to the raw source you

Less/Sass debugging in Chrome Dev Tools/Firebug [closed]

旧街凉风 提交于 2019-11-28 04:27:48
How do you guys do maintenance on CSS built with Less/Sass? One of the things I like about Dev Tools/Firebug is the ability to see the line number of a css styling. Is there a good way to do this with CSS preprocessors other than having to manually search through the .less/.scss file to find the code I want to modify? Chrome Developer Tools now supports Sass debugging out-of-the-box. Updated to include source maps: Previous versions used inline comment in your css to provide a refernce to the source code (see below how-to). recent versions of sass (3.3+) and chrome (31+) use source maps for

Performance impact of using css / javascript source-maps in production?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 03:45:43
Should source-maps be used in production environment? Do they provide any benefits other than debugging? Do they impact app load time due to the additional server round-trips? Are browsers smart enough to load .map assets after app is loaded and rendered? If a browser cannot find the .map asset ( 404 error), would there be performance impact? Should I care about fixing it? Note that fixing the last one may not be as easy as serving the .map assets if there are complicated concat / minify build steps. A quick test using Charles Web Proxy shows that source maps are only loaded if developer tools

Gulp + browserify + 6to5 + source maps

筅森魡賤 提交于 2019-11-28 03:16:03
I'm trying to write a gulp task allowing me to use modules in JS (CommonJS is fine), using browserify + 6to5. I also want source mapping to work. So: 1. I write modules using ES6 syntax. 2. 6to5 transpiles these modules into CommonJS (or other) syntax. 3. Browserify bundles the modules. 4. Source maps refers back to the original ES6 files. How to write such a task? Edit: Here's what I have so far: gulp task gulp.task('browserify', function() { var source = require('vinyl-source-stream'); var browserify = require('browserify'); var to5ify = require('6to5ify'); browserify({ debug: true })

“Unknown provider: aProvider <- a” How do I find the original provider?

和自甴很熟 提交于 2019-11-28 02:48:48
When I'm loading the minified (through UglifyJS) version of my AngularJS application, I get the following error in the console: Unknown provider: aProvider <- a Now, I realize that this is due to variable name mangling. The unmangled version works just fine. However, I do want to make use of variable name mangling, as it drastically reduces the size of our JS output file. For that reason, we're using ngmin in our build process, but it doesn't seem to resolve this issue, even though it served us well in the past. So, to debug this issue, I enabled source maps in our uglify grunt task. They are

AngularJS - Stack trace ignoring source map

心不动则不痛 提交于 2019-11-27 20:16:56
问题 I've written an AngularJS app but it's proving a bit of a nightmare to debug. I'm using Grunt + uglify to concatenate and minify my application code. It also creates a source map alongside the minified JS file. The source map seems to work properly when there is a JS error in the file, but outside of the AngularJS application. e.g. If I write console.log('a.b'); at the top of one of the files, the error logged in the Chrome debugger displays line + file info for the original file, not the

Source maps files in production - Is it safe? [closed]

谁说胖子不能爱 提交于 2019-11-27 20:06:56
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . I'm using UglifyJS to minify and uglify my sources, and Sentry to report errors from my production environment. In order to get errors from Sentry, in a readable manner, I need to add source-map Is it safe to do it in production servers, or the source-maps files should only

How to add sourcemap in React Native for Production?

泪湿孤枕 提交于 2019-11-27 18:31:42
I received error log like the following while the app crashed: Fatal Exception: com.facebook.react.modules.core.JavascriptException: onSelect index.android.bundle:20:7148 onPress index.android.bundle:20:2435 But it's not really helpful for me to trouble shoot. How could I enable source map so that I could track down where the issue is ? UPDATE 2018 https://docs.expo.io/versions/latest/guides/using-sentry.html Looks promising ! For source mapping here is the way I go about it: In my bundle command for my production build I tell it to generate a source map: iOS: react-native bundle --platform

Source maps with grunt

六眼飞鱼酱① 提交于 2019-11-27 16:38:23
问题 Do you know of a workflow that includes source maps for an app compiled with grunt? I am well aware of plugins like uglifyjs that allow you to simply generate a source map. But I'm looking for incorporating this into a more complex workflow, rather than just making a one-off source map. I've noticed that the most popular Yeoman generators (that I know of) are missing source maps in their workflows. Is this just because of a lack of support in the major plugins for source maps? Or is it

Source map is not visible at Chrome network tab

老子叫甜甜 提交于 2019-11-27 15:54:18
问题 Before Google Chrome update I saw source map files at Chrome Devtools on Network tab. Now, after update to version 43.0.2357.134 m I don't see them. Maybe my code is wrong? Or it's done intentionally to hide those source maps? 回答1: There is a way to get this information by searching for "map" in chrome://net-internals/#events 回答2: This was a side-effect of fixing bug 362913 which was a feature request being tracked in issue 465032. If you have a need for seeing the map files then please file