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
4
votes
2 answers

Generate SourceMaps for a single js file which includes modules with npm require and gulp

I'll begin straight off with an example of my code structure. Assume the following three trivial files reside inside the same directory called…
George Dimitriadis
  • 1,681
  • 1
  • 18
  • 27
4
votes
1 answer

Gulp SASS Sourcemap sources are incorrect

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 =…
4
votes
1 answer

Concatenated and uglified Javascript file larger than source files

Hello I have the following gulpfile.js: 'use strict'; var gulp = require('gulp'), jshint = require('gulp-jshint'), sass = require('gulp-ruby-sass'), compass = require('gulp-compass'), gutil = require('gulp-util'), concat =…
user3718908x100
  • 7,939
  • 15
  • 64
  • 123
4
votes
0 answers

Debug source maps loading on Chrome

I generate source maps for javascript files during minification. The map files are referenced using a relative URL from the minified JS files that sit next to the map files. Here is an example comment at the end of app-e47a6637.js: //#…
theDmi
  • 17,546
  • 6
  • 71
  • 138
4
votes
1 answer

Should my Gulp inline sourcemap file size be as large as it is?

I'm including Bootstrap in my Sass styles. When I compile the Sass without sourcemaps enabled the file size is approx. 150kb. When I turn sourcemaps on the file size shoots up to 800kb. Is this to be expected? Eventually I will be cherry-picking the…
Chris
  • 3,729
  • 22
  • 30
4
votes
0 answers

Remove file from gulp-sourcemaps

I am using gulp-sourcemaps to generate inline sourcemaps for my typescripts files, however I noticed that in the sourcemap I have the source for the individual .ts files as well as the concatenated .js file. This more than doubles the size of the…
ChrisThomas
  • 275
  • 3
  • 12
3
votes
0 answers

gulp-ruby-sass not working

I did everything exactly as stated in docs: https://github.com/sindresorhus/gulp-ruby-sass/blob/master/readme.md This is my code in gulpfile.js: // Sass configuration const gulp = require('gulp'); const sass = require('gulp-ruby-sass'); const…
yodalr
  • 9,778
  • 10
  • 32
  • 47
3
votes
0 answers

Using Gulp nodemon with the VSCode inspector

I am trying to figure out the VSCode launch configuration for launching a gulp task in the inspect mode. The gulp task internally transpiles the code and runs the process via gulp-nodemon. Example is given as below: VSCode Launch script: { "type":…
Love Hasija
  • 2,528
  • 2
  • 27
  • 26
3
votes
0 answers

gulp can't find module source-map

I'm having an issue with sourcemaps in gulp: when I try to implement gulp-sourcemaps directly through a pipe, but also when I try to feed it in via webpack, which if I've understood correctly, has sourcemaps by default, I keep getting the same…
eliza
  • 39
  • 2
3
votes
1 answer

Creating standard and compressed css files when using Gulp efficiently

I have a gulp file that I use and it contains a process that creates a standard non-compressed .css file and a compressed .css file; I used to generate the compressed version simply by minifying the just generated non-compressed one, however this…
Brett
  • 19,449
  • 54
  • 157
  • 290
3
votes
1 answer

gulp-typescript with gulp-sourcemap: output files to same directory

I'm using gulp-typescript and gulp-sourcemaps to compile TypeScript with sourcemaps. I want to output both the .js and the source map files to the same directory as the original .ts file. I'm using a tsconfig.json file to configure TypeScript, and…
fikkatra
  • 5,605
  • 4
  • 40
  • 66
3
votes
0 answers

CSS3 substring-matching selectors not being detected by my sourcemap file

[Fixed] - See bottom of post I'm not sure if they're just not supported, or if there's something I'm doing wrong. I noticed that it removes the quotes around the attribute, I don't know how or why it's doing this, but maybe this could be causing the…
Luke
  • 195
  • 2
  • 16
3
votes
1 answer

gulp-sourcemaps points sources to wrong directory

I'm trying to create source maps for my sass and js files with gulp-sourcemaps, but the path in sources: [ ... ] is always only relative to the source and not to the destination directory. My project structure looks like this: project |-- public/ | …
Staeff
  • 4,994
  • 6
  • 34
  • 58
3
votes
1 answer

gulp-sourcemaps with gulp-minify-css crashes

I'm compiling bootstrap-sass with the gulp task: gulp.task('build-bootstrap-sass', function () { return gulp.src('styles/styles.sass') .pipe(sourcemaps.init()) .pipe(sass({includePaths:…
Meirion Hughes
  • 24,994
  • 12
  • 71
  • 122
3
votes
0 answers

Can't get Gulp to reference Stylus files to generate sourcemaps

I'm having issues trying to generate sourcemaps for my CSS files. My current stack is: Gulp Stylus Autoprefixer There are two compiling steps: Gulp pre-compiles to CSS; Autoprefixer post-compiles the CSS to add browser vendor prefixes; I can't…
João Cunha
  • 3,776
  • 3
  • 22
  • 33
1 2
3
11 12