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
1 answer

Getting gulp-sourcemaps to map correctly with a series of plugins

I have a git repo with multiple plugins (1 main one and several that are only intended to work with the main one). I am using this approach for distribution, since bower doesn't provide a way to have more than one plugin per git repo. So, I need to…
NightOwl888
  • 55,572
  • 24
  • 139
  • 212
1
vote
0 answers

Debug coffeescript source in Cloud-9 ide?

Using Cloud9, set up gulp to compile coffeescript files to javascript with source map. Want to debug it. Now the debugger steps into generated javascript, but not coffeescript files. How to make debugging facilities work with coffeescript code in…
idm
  • 1,728
  • 2
  • 19
  • 26
1
vote
0 answers

Gulp SASS, autoprefixer, minify and sourcemaps generate huge file

I'm experiencing strange behaviour using this Gulp configuration to minify my SASS files generating sourcemaps. 'use strict'; var PATH = { SRC_DIR: 'src/', SRC: { IMG: 'img/', INDEX: 'index.html', JS: { …
1
vote
1 answer

Gulp sourcemaps for scss on single file

sass scss/_bootstrap.scss style.css Above code generates properly with sourcemaps but not the below code gulp.task('sass', function () { sass('scss/_bootstrap.scss', {sourcemap: true}) .on('error', function (err) { …
aWebDeveloper
  • 36,687
  • 39
  • 170
  • 242
1
vote
1 answer

Sass Sourcemap with Chrome DevTools

We are using gulp-sass to compile our SCSS, and using gulp-sourcemaps to generate sourcemaps in our dev environment: ... .pipe(plugins.if(IS_DEV, plugins.sourcemaps.init())) .pipe(plugins.sass({ outputStyle: "nested" })) .pipe(plugins.if(IS_DEV,…
Unpossible
  • 10,607
  • 22
  • 75
  • 113
1
vote
0 answers

Gulp - sourcemaps - strange behavior

In my gulpfile.js, I'm trying to minify and enable sourcemaps in a release task. Based on a config variable, I'm trying to pipe further actions into the stream. The check for the condition is using gulp-if-else. My set of dependencies (only relevant…
Raghu
  • 1,140
  • 1
  • 14
  • 22
1
vote
2 answers

Sass sourcemap working directly but not working for localhost on Chromium

I am running Debian Wheezy. I am playing with gulp last few days. My problem is that when I point browser to file directly (file:///...) source maps linked correctly like this: But when I point with localhost/... I get this: On Iceweasel…
Djuka
  • 505
  • 5
  • 19
1
vote
0 answers

Browserify bug with multiple transforms and source maps

I am using Browserify with one transform method: reactify. Here is how I build my scripts: gulp.task('scripts', function() { var b = null, watcher = null; function bundle() { return b .on('error', function(err) {…
Naor
  • 23,465
  • 48
  • 152
  • 268
1
vote
1 answer

Inline sourcemap (generated with gulp-sourcemaps) not working

This is a bit of a weird one: I've got a gulp task that looks like this: gulp.task('less', function () { gulp.src('./less/main.less') .pipe(sourcemaps.init()) .pipe(less({ plugins: [cleancss] })) .pipe(sourcemaps.write()) //…
1
vote
1 answer

Gulp sourcemaps + different CSS preprocessors?

Here's a simplified version of the task I'm using: g = require 'gulp' $ = require('gulp-load-plugins')() g.task 'vendor:styles', -> sass_filter = $.filter('*.scss') less_filter = $.filter('*.less') …
knite
  • 6,033
  • 6
  • 38
  • 54
1
vote
1 answer

gulp-sourcemaps generates an empty names property

I'm trying to generate sourcemap files for uglified javascript with gulp. My task looks as follows: gulp.task('scripts', ['clean'], function() { return gulp.src([ 'src/app/**/*.js' ]) .pipe(sourcemaps.init()) .pipe(concat('app.min.js')) …
null
  • 7,906
  • 3
  • 36
  • 37
0
votes
0 answers

Sourcemaps in wwwroot do not map to typescript source outside of it

I am running a C# app, using Typescript with gulpfile to provide the file to wwwroot gulp.task('typescript', function () { return gulp.src(paths.typescriptSrc, {sourcemaps : true}) .pipe(tsProject().on('error', swallowError)) …
shredder
  • 85
  • 1
  • 10
0
votes
1 answer

Gulp: Migrating Gulpfile.js from gulp 3 to 4

Here i am trying to migrate my existing site which is using gulp 3. Now upgrading gulp from 3 to 4. Below is Gulpfile.js 'use strict'; var gulp = require('gulp'), autoprefixer = require('gulp-autoprefixer'), sass = require('gulp-sass'), …
Kango
  • 809
  • 11
  • 27
  • 48
0
votes
0 answers

Why Gulp runs without errors but is not compiling the SCSS scripts?

I setted up my Gulpfile and so far it looked good. I had no errors anymore. Just looked a bit too fast as he compiled it. But if he would really do the job this wouldn't be any problem. But as i run my gulp css task it didn't compiled my SCSS files…
0
votes
1 answer

Breakpoint issues in Chrome while using source maps (gulp-sourcemaps)

I'm facing some weird issues with gulp-sourcemaps and gulp-uglify working together, basically, we use the gulp-uglify to minify our code and gulp-sourcemaps to create the source map of the project to be debugged the JS code at the console. So today,…