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
0
votes
0 answers

why my less source maps don't work?

I use the gulp-less compiler with gulp-sourcemaps write the source maps file. but it don't work in my chrome dev tool, I can't see the content of less. only css file. it's my gulp file: var gulp = require('gulp'); var less =…
hellolibo
  • 61
  • 4
0
votes
0 answers

Chrome not showing sourcemaps for minified CSS generated with gulp

I can't seem to get my sourcemaps to work in Chrome for my minified CSS files. Here's my gulpfile.js: var gulp = require('gulp'), gp_concat = require('gulp-concat'), gp_rename = require('gulp-rename'), gp_cssmin =…
ObiHill
  • 11,448
  • 20
  • 86
  • 135
0
votes
1 answer

Sourcemap for Appium, using Visual Studio Code as debugger?

I am setting up a debugging environment for Appium, which is a nodejs application with a gulpfile. I am able to run gulp transpile which generates .js files in build/lib. Now when it comes to setting breakpoints, I need to set breakpoints in…
atlantis
  • 817
  • 1
  • 10
  • 16
0
votes
1 answer

sourceComment in Gulp is showing path relative to computer, rather than folder

I have been doing sourceComments for a project I am working with and the comments that get outputted in the CSS so that I can find the correct scss file are showing paths that are relatvie to my computer e.g. /* line 39,…
Philip
  • 569
  • 2
  • 5
  • 27
0
votes
1 answer

CSS Sourcemaps not loaded

So I have the following task: gulp.task('sass', function () { gulp.src(['./angular/app/**/*.s+(a|c)ss']) .pipe($.concat('app.css')) .pipe($.sourcemaps.init()) .pipe($.sass({ includePaths: ['./angular/app/global']…
Kiwi
  • 2,713
  • 7
  • 44
  • 82
0
votes
0 answers

Gulp source maps not working on remote server

So I'm running a gulp setup (remote server) which creates source maps in the right directory, adds a sourceMappingURL (linking to the correct map) to my css file, and writes the correct sourceRoot in my css.map. When I check my element styles…
0
votes
0 answers

Gulp is getting stuck on my task

I'm pretty new to gulp, so I'm stumbling around a bit. I was fine up until the point I wanted to add sourcemaps to my project, now my gulp gets stuck after running the default task and doesn't seem like it will ever start my 'css' task. Since, I'm…
Kathryn Crawford
  • 611
  • 1
  • 10
  • 27
0
votes
1 answer

Compile less and output minify and non-minify files

I have a task in Gulp that compile a less file in css. I want to output the non-minify and the minify version with sourcemaps. I can't find a soluction. This is my actual task that should do this job: return…
Alex Ferreli
  • 548
  • 1
  • 7
  • 14
0
votes
1 answer

Can't get gulp to output to the source directory

I'm trying to get gulp to compile my SASS files and output them to the same source dir however I haven't been able to get it to work properly, I've tried using the base option: gulp.task('sass_modules', function() { return…
0
votes
1 answer

Sourcemap between compiled, minified and concatenated css file and sass files

I have following task which compiles *.scss files to scc, minifies them and concatenates to one css file. gulp.task("scss-to-css", ["clean-css"], function () { return gulp.src(pathToScssFiles) .pipe(sass()) .pipe(minifyCss({})) …
rnofenko
  • 9,198
  • 2
  • 46
  • 56
0
votes
1 answer

How Gulp + sourcemaps work for debugging

So I just got set up with Gulp yesterday and after a rocky start I'm well on my way to automating build processes, but I decided to try and do something a teensy bit trickier and suddenly hit another wall. My desired output is to have a minified…
stevendesu
  • 15,753
  • 22
  • 105
  • 182
0
votes
3 answers

Trying to integrate gulp SASS with gulp Autoprefixer-postcss, failing miserably

So, Autoprefixer has been bugging me to use the updated postcss version so I am trying to update my Gulp file. The problem is all the examples do not integrate Sass as the first step; I use gulp-ruby-sass. If I run my sass task on my sass directory…
Steve
  • 14,401
  • 35
  • 125
  • 230
0
votes
0 answers

Sourcemap wrong filename

I have an issue with my gulpfile.js when generating sourcemaps for my sass. When I use Developer Tools to inspect an element it's source is shown as _box-sizing.scss when it's true source is _header.sass. Here's an extract from my gulpfile.js var…
Mike Kaperys
  • 160
  • 1
  • 1
  • 9
0
votes
0 answers

Sourcemaps content same as compiled output - on Windows

The problem I'm using gulp-sourcemaps to generate sourcemaps for my compiled sass. This seems to work on linux/mac computers, but not on Windows. Instead of the actual source sass, the content in the sourcemap is the same as the generated css. P.S.…
Joseph Silber
  • 214,931
  • 59
  • 362
  • 292
0
votes
1 answer

gulp-sourcemaps not including content when using gulp-less and gulp-minify-css

I have a Gulp taks like this: var gulp = require('gulp'); var less = require('gulp-less'); var minifyCss = require('gulp-minify-css'); var sourcemaps = require('gulp-sourcemaps'); gulp.task('less', function() { return gulp.src('./less/*.less') …
dgaviola
  • 2,421
  • 2
  • 26
  • 37
1 2 3
11
12