Menu
  • HOME
  • TAGS

Why source maps does not work?

javascript,google-chrome,haxe,flashdevelop,source-maps

I believe this is a Google Chrome bug, since it cannot load the local files. You could try to compile with the compiler flag -D source-map-content. This include the hx sources as part of the JS source map. For me this works pretty good....

How do I enable source map support in Firebug?

firefox,firebug,source-maps

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. Firebug 3 will integrate into the built-in DevTools of Firefox, which already have this feature. So Firebug 3 will also have that feature....

View CSS When Using Sass And Sourcemaps

css,google-chrome,sass,google-chrome-devtools,source-maps

Not in chrome. You can however do that in Firefox (developer edition)

Replacing a String within a JS file and not breaking sourceMaps in brunch

javascript,source-maps,brunch

I had the exact same question and wrote this little script: https://www.npmjs.org/package/sourcemap-aware-replace usage: sourcemap-aware-replace --search=foo --replace=barr --in-map=test.js.map --out-file=test.replaced.js ...

Sass Sourcemap with Chrome DevTools

google-chrome,source-maps,gulp-sass,gulp-sourcemaps

Crux : You cannot modify scss rules properties inside the inspect element panel of chrome devtools. However, we can edit the source files (sass/scss) inside source panel of the chrome using chrome workspaces. I had a the same problem. I had to scratch my head for a whole day to...

Is it possible to disable source maps for certain files in webpack?

javascript,webpack,source-maps

I guess you could create an identity loader who filters out sourcemaps for these particular files. // remove-sourcemap.loader.js module.exports = function(source, map) { this.callback(null, source) }; Then, in your webpack config: module: { loaders: [ include: [/* list of files (absolute path) for which to remove sourcemaps */], loader: 'remove-sourcemap',...

Less SourceMap file location relative to filesystem, not website

javascript,gruntjs,less,source-maps,grunt-contrib-less

The browser can not read the less folder, so remove your Less files to your public folder (or give the web server access to the less folder ) Alternatively set Less's source-map-less-inline and source-map-map-inline options: options: { sourceMap: true, sourceMapFileInline: true, outputSourceFiles: true } The above puts the map, with...

GWT source maps in production

gwt,source-maps

Have a look at how this is done for GWT's own website: https://gwt.googlesource.com/gwt-site-webapp/+/master/src/main/java/com/google/gwt/site/webapp/GWTProject.gwt.xml, specifically the includeSourceMapUrl configuration property. Note that -saveSource is passed to the GWT compiler too....

Gulp - sourcemaps aren't loading source in Chrome

gulp,source-maps,gulp-uglify

gulp-uglify as of Jan 15 2014 does not have working sourcemaps built in. This is the current solution for getting sourcemaps to work: npm install [email protected]://github.com/floridoo/gulp-uglify/tarball/sourcemap_fix --save-dev var gulp = require('gulp'); var sourcemaps = require('gulp-sourcemaps'); var uglify = require('gulp-uglify'); gulp.task('ug', function(){ gulp.src('./test.js') .pipe(sourcemaps.init()) .pipe(uglify()) .pipe(sourcemaps.write()) .pipe(gulp.dest('./out')); }); gulp.task('default', ['ug']); Example...

Why we use minified version of Angularjs (Reason to give preference to angular.min.js over angular.js even if we are adding angular.min.js.map) [duplicate]

javascript,angularjs,minify,source-maps

You are right and wrong. This .map file is for debug only and get downloaded by your browser when you open the debug mode....

How can I get source maps to work when running tests using ember-qunit for an ember app built on ember-cli

ember.js,ember-cli,source-maps,ember-qunit,testem

I'm on ember-cli 0.2.2. I ran across this problem as well and found this Chrome issue with processing sourcemaps. People commenting on the issue suggest using the Chrome Canary build for now: I'm currently using the Canary build to put breakpoints in and debug my ember code. Get it here:...

Safety issue exposing sourcemap on live web-application

javascript,css,debugging,compilation,source-maps

If you're only minifying your script to improve download performance, not to keep your code secret, there shouldn't be any problem with making the source map available.

`Invalid mapping` error trying to use babel require hook and polyfill with react jsx transpile

source-maps,react-jsx,babeljs

This was a bug in acorn-jsx, the JSX parser that Babel uses. The recommended fix would be: rm -rf node_modules/babel && npm install ...

Keep source maps when saving files in a different folder with Gulp

gulp,source-maps

The problem is gulp-rename doesn't currently support gulp-sourcemaps, as mentioned in their latest issue. One alternative is to use a different lib that supports sourcemaps, for example gulp-concat, which supports renaming the files. If you don't want to concat your files, however, you could always open a pull request against...

External Source Map Tool

javascript,uglifyjs,source-maps

You can use mozilla's source-map library to reverse-map to the original positions, as follows: var smc = new SourceMapConsumer(rawSourceMap); // <-- put map in there console.log(smc.originalPositionFor({ // <-- plug positions here line: 2, column: 28 })); Output is similar to: { source: 'http://example.com/www/js/two.js', line: 2, column: 10, name: 'n' }...

Chrome/Sass Sourcemaps, changes made in inspector not saved in SCSS file

css,google-chrome,sass,google-chrome-devtools,source-maps

https://code.google.com/p/chromium/issues/detail?id=257778 is what you are asking for. Patching SCSS in place of CSS when the Styles pane is edited is impossible (ambiguous) in the general case if variables or complex language features are involved, so your best bet is to Ctrl-click the required CSS property in the Styles pane to...

Gulp Browserify SourceMaps

gulp,browserify,source-maps

Ok so the solution was I was trying to use browserify-shim transforms, which apparently wrecks the source maps for IE.

chrome debugger: clicking exception link in console opens file in new tab instead of cross-linking into source file

google-chrome,meteor,coffeescript,console,source-maps

The Meteor folks are working on this: http://github.com/meteor/meteor/issues/3655

Unsupported format of the sourcemap while loading jquery-migrate.min.js

jquery,visual-studio-2013,source-maps,jquery-migrate

The jquery-migrate.min.js.map is there so you can debug the jquery minified library. It needs to be there for development purpose but for production you don't need that whole line. I dont know why they have included that line in the js. You can just safely delete that whole line. I...

Sentry - JavaScript Projects and Source Maps

error-logging,uglifyjs,source-maps,sentry

The Sentry server will process the sourcemaps remotely as part of its pipeline. It looks for them based on the standard headers or annotations when it fetches the source itself, and will then fetch them automatically. In case of the files being unavailable publicly, there is also an API to...

Gulp + browserify + 6to5 + source maps

gulp,browserify,source-maps,babeljs

Use this as your start point: var gulp = require('gulp'); var gutil = require('gulp-util'); var sourcemaps = require('gulp-sourcemaps'); var source = require('vinyl-source-stream'); var buffer = require('vinyl-buffer'); var browserify = require('browserify'); var to5ify = require('6to5ify'); var uglify = require('gulp-uglify'); gulp.task('default', function() { browserify('./src/index.js', { debug: true }) .transform(to5ify) .bundle() .on('error', gutil.log.bind(gutil,...

Visual Studio Debugging with Source Maps

internet-explorer,visual-studio-2013,typescript,source-maps

I have found what the problem is. The code that handles the node server in my organization was doing something on the fly that I didn't notice. But I was able to do so when creating a simple sample test to share here. So, attaching iexplore script process on Visual...