source-maps

How to apply a hidden / remote sourcemap in Safari?

那年仲夏 提交于 2019-12-04 12:33:18
问题 I'm attempting to debug an issue in my react app, that's only occurring on iOS, in production. I want to utilise a hidden sourcemap so I can debug the app's minified assets in Safari without overtly publishing the commented source. hidden-source-map - Same as source-map, but doesn’t add a reference comment to the bundle. https://webpack.github.io/docs/configuration.html#devtool In Chrome I can: serve the sourcemap wherever I like (eg main.js.map right next to the minified file) open the

Gulp SASS Sourcemap sources are incorrect

旧时模样 提交于 2019-12-04 11:07:21
I am struggling to get my SASS sourcemaps to work correctly. The problem seems to be the "sources" attribute within the sourcemap and how my SASS files are nested. I have a Gulp task that compiles SASS to CSS. Here is an example of that var paths = { styles: { src: './Stylesheets/SCSS/', files: './Stylesheets/SCSS/**/*.scss', dest: './Stylesheets/CSS/' } } gulp.task('compile-sass', function (){ return gulp.src(paths.styles.files) .pipe(sourcemaps.init()) .pipe(sass({ outputStyle: 'compressed', includePaths : [paths.styles.src] })) .pipe(prefix({ browsers: ['last 2 Chrome versions'], cascade:

Chrome Extension: Not loading source-maps

有些话、适合烂在心里 提交于 2019-12-04 10:54:06
I am not able to load sourcemap in Chrome Extension for some reason. The folder which is being loaded for Chrome Extension has .map just next to .js file. With the .js file having the line //# sourceMappingURL=1.9215106f1980d05d2b4c.js.map referencing the .map file path. However, the Chrome dev-tools is not loading the maps for some reason. I double checked the Chrome settings to make sure that the js source maps is turned on and it is working with a simple Angular project. Also, made sure I have the following in the manifest file: "web_accessible_resources":[ "*.map" ], 来源: https:/

How do I enable source map support in Firebug?

依然范特西╮ 提交于 2019-12-04 09:55:47
问题 I've been using Chrome for a good while now, and you have to explicitly enable souce map support in the options. I'm testing something in Firefox now with Firebug, but I'm not seeing my original source files - just the generated bundle. Is there some way to enable source map support in Firebug? I'm using Firebug 1.12.8 in Firefox 27.0.1. 回答1: Firebug doesn't support source maps yet (as of 2.0.*). You may want to follow issue 5765 for source maps support for JavaScript and issue 5961 for CSS.

How to configure sourceMaps for LESS using Grunt?

可紊 提交于 2019-12-04 08:41:26
问题 I'm using grunt 0.4.2 and grunt-contrib-less 0.9.0. I want my LESS to be compiled into CSS with support for source maps. My LESS files are in public/less , and the main one is called main.less . The compiling of public/less/main.less into public/css/main.css works, but source maps don't work. What is wrong with my Grunt config below? { less: { dev: { options: { compress: true, yuicompress: true, optimization: 2, sourceMap: true, sourceMapFilename: "public/css/main.css.source-map.json", /

How to create a source map for WebPack?

瘦欲@ 提交于 2019-12-04 05:47:27
My current webpack.config file module.exports = { entry: "./entry.js", output: { devtoolLineToLine: true, sourceMapFilename: "./bundle.js.map", pathinfo: true, path: __dirname, filename: "bundle.js" }, module: { loaders: [ { test: /\.css$/, loader: "style!css" } ] }, }; I was reading here https://webpack.github.io/docs/configuration.html and found the following: output.sourceMapFilename [file] is replaced by the filename of the JavaScript file. [id] is replaced by the id of the chunk. [hash] is replaced by the hash of the compilation. I've added it above as you can see, but when my webpack

Will the source mapping in Google Chrome push to Error.stack

荒凉一梦 提交于 2019-12-04 03:30:38
Within Google Chrome, I was wondering if stack traces will, in the future, provide mapping support. Currently, using source maps, throwing an error will provide the line number link to my TypeScript files, however... When calling the Error.stack, it gives me the JavaScript lines and files. Here's a reference picture: http://puu.sh/4DTOG.png As you'll notice, the actual line the error is on is linked to the TypeScript file, but the stack trace links to the JavaScript files. There is no inherent technical limitation. However I don't think it is planned. For reasons like, when the stack trace

How to debug LESS in Chrome?

筅森魡賤 提交于 2019-12-04 02:53:02
It looks as though LESS debugging has come a decent distance since even a year ago, and I was wondering how many people have experience with debugging using developer tools in Chrome/Canary. I'm trying to ensure that when I'm debugging a file, the element's CSS shows up as the LESS file, rather than the CSS file. It's of little use to have CSS line numbers show up, when I need to know the requisite line number of the LESS file. I can do this in firefox with firebug and fireless, but it's not working in chrome I tried to follow the steps here , however it doesn't appear to be functioning for me

WebPack sourcemaps confusing (duplicated files)

筅森魡賤 提交于 2019-12-04 00:23:39
I decided to try out WebPack on a new project I'm spinning up today and I'm getting really strange behavior from the sourcemaps. I can't find anything about it in the documentation, nor can I find anyone else having this issue when skimming StackOverflow. I'm currently looking at the HelloWorld app produced by Vue-CLI's WebPack template -- no changes have been made to the code, the build environment, or anything. I installed everything and ran it like so: vue init webpack test && cd test && npm install && npm run dev Looking at my sourcemaps, I see the following: This is a hot mess. Why are

Debug compiled ES6 nodejs app in WebStorm

青春壹個敷衍的年華 提交于 2019-12-03 19:19:32
问题 I want to debug a node app that runs from babel compiled ES6 files. I have my ES6 source in an src folder and the babel ES5 equivalent in a build folder. Project root | | build | > ES5 Compiled files | | src | > ES6 Source files My goal: Place breakpoints directly in my ES6 source. I have generated proper source maps and I made a node debug configuration that runs the ES5 main file with project root set as working directory. I can break when I set breakpoints in ES5 compiled files, and it