Questions tagged [gulp-sourcemaps]

gulp-sourcemaps is a gulp plugin that adds support for source maps.

gulp-sourcemaps is a gulp plugin that adds support for source maps. The plugin allows to write both inline source maps and external source map files, to load existing source maps, to handle source maps from different directories. It is possible to use other plugins in the pipeline between calls to init and write functions of gulp-sourcemaps, but these other plugins need to have support for gulp-sourcemaps. The list of gulp plugins that support gulp-sourcemaps: https://github.com/floridoo/gulp-sourcemaps/wiki/Plugins-with-gulp-sourcemaps-support.

168 questions
1
vote
2 answers

Typescript + Gulp + Sourcemaps wrong source path

I have a nodejs app with the following folder structure: project |-- src/ | |-- controllers/ | | |`-- authorize-controller.ts | |`-- index.ts |--dist/ | |--controllers/ | | |`-- authorize-controller.js | | |`--…
der_chirurg
  • 1,475
  • 2
  • 16
  • 26
1
vote
1 answer

gulp-sourcemaps outputs incorrect sources in .css.map

I can't seem to figure out what is wrong with my configuration of gulp and gulp-sourcemaps. My main.css and main.css.map are compiled, yet I get incorrect…
Yates
  • 532
  • 7
  • 23
1
vote
1 answer

Cannot get sourcmaps or chrome dev tools to show CSS origination

when using SASS and concatenating my files using gulp, and inspecting element I am not able to see where the css is coming from. The chrome Dev Tools does not specify a line and file number for the CSS. I have a main file main.scss in which I am…
1
vote
0 answers

Sourcemaps with gulp-bless

I have a single app.scss file which imports ~100 other Scss files. This is then compiled to app.css with a gulp task. app.css contains more than 4095 selectors, so I use gulp-bless to split it up into multiple files. This all works with the…
Mike
  • 4,071
  • 21
  • 36
1
vote
1 answer

VSCode browserify source map debugging does not seem to work

I'm having an issue getting VSCode to set breakpoints in chrome with typescript/browserify. If I run chrome by itself, AND refresh the page, the source maps load fine, and the built-in chrome debugger can step through my .ts files just fine.…
1
vote
2 answers

Sourcemaps are in wrong location or have incorrect paths

I've been trying to get gulp sass and gulp sourcemaps to do exactly what I want and I'm finding it hard. I want to take a sass entry file (src/sass/index.scss), generate an output file (dist/css/index.css) and a separate sourcemap for that index…
Damon Smith
  • 1,770
  • 18
  • 24
1
vote
1 answer

TypeScript + Browserify + SourceMaps in Gulp?

Hi this issue is stumping me. I want to know if, after compiling from TS and using Browserify, I can get my SourceMaps (from gulp-sourcemaps) to point all the way back to my TS files. Currently I have it working so that I use tsify to compile the TS…
Caleb
  • 328
  • 2
  • 10
1
vote
2 answers

How to stop sourcemaps/usemin from appending css .map tag to output?

gulp-usemin is generating and appending css sourcemap link tag to output html, but not doing for js. How do I stop it from appending the sourcemap tag? Gulp task: gulp.task('build', function () { return gulp.src('templates/**') …
codneto
  • 2,319
  • 3
  • 24
  • 36
1
vote
1 answer

How simplify Gulp task for hard folders structure?

I working with gulp-sass, gulp-sourcemaps, browsersync and i have project with hard folder structure for sass stylesheets. Now task looks like this: gulp.task('sass', function () { // bootstrap compilation gulp.src('./sass/bootstrap.scss') …
MAG-FRAG
  • 41
  • 1
  • 5
1
vote
0 answers

Gulp, Typescript and Uglify: Error: File is not in the source map

With an application I'm currently developing I am also learning Gulp and using source maps. The application is a hybrid of Typescript and Javascript. The files are concatenated and minified. When passing the files through gulp-uglify an error…
Sebazzz
  • 1,205
  • 2
  • 15
  • 33
1
vote
1 answer

gulp sourcemaps not writing expected sourcemap

Here is the task: dev.assets.sass = [ 'client/modules/*[!public]*/scss/*.scss' ]; gulp.task('sass', function () { gulp.src(dev.assets.sass) .pipe(sourcemaps.init()) .pipe(sass({outputStyle:…
pQuestions123
  • 4,471
  • 6
  • 28
  • 59
1
vote
1 answer

Why doesn't chrome understand my scss source map?

I have an scss source file named style.scss which resides within /style: @import 'reset'; body { background: #555555; color: white; } And another scss source file named reset.scss which resides within /style: * { padding: 0; margin:…
1
vote
0 answers

Is it possible to have fully working sourcemaps to debug minified CSS generated from SASS using Gulp?

Using Gulp, I am able to produce CSS transpiled from SASS with sourcemaps that point to the original SASS files, and I am also able to produce sourcemaps to debug minified CSS, but so far I have been unable to work out how (if it is even possible)…
codernaut
  • 66
  • 6
1
vote
2 answers

Incorrect filename using gulp-sourcemaps

I'm using gulp-sourcemaps in my project to process my SASS and JavaScript. My gulpfile.js is correctly generating .map files, though Chrome is showing the wrong filenames in Developer Tools and Console. At the moment, I'm unsure where the issue…
Mike Kaperys
  • 160
  • 1
  • 1
  • 9
1
vote
2 answers

Gulp SourceMaps not working when using gulp-gzip

I am using Gulp to uglify javascript files and generate their source map. So far so good: var gulp = require('gulp'); var plugins = require('gulp-load-plugins')(); gulp.task('compress-js', ['clean-js'], function() { return…
codependent
  • 23,193
  • 31
  • 166
  • 308