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

gulp babel - gulp sourcemaps are coming out buggy

Here is the task: var gulp = require('gulp'), clean = require('gulp-clean'), copy = require('gulp-copy'), sass = require('gulp-sass'), concat = require('gulp-concat'), sourcemaps = require('gulp-sourcemaps'), uglify =…
pQuestions123
  • 4,471
  • 6
  • 28
  • 59
2
votes
1 answer

gulp sourcemaps not pointing to sass but css

I have this gulp setup require('es6-promise').polyfill(); var gulp = require('gulp'); var sass = require('gulp-sass'); var sourcemaps = require('gulp-sourcemaps'); var mmq = require('gulp-merge-media-queries'); var prefix =…
wind_kind
  • 561
  • 6
  • 23
2
votes
1 answer

ReferenceError: sourcemap is not defined

I have installed gulp-sass and gulp-sourcemaps and I can see there folders in: node_modules. My gulpfile is here: var gulp = require('gulp'), sass = require('gulp-sass'), sourcemaps = require('gulp-sourcemaps'); // Sass…
Chudz
  • 160
  • 2
  • 17
2
votes
0 answers

Browserify Babelify Uglify source map sources do not get loaded in Google Chrome

I generated a js file with a source map using the following gulp task. The original sources get loaded in Firefox but do not get loaded in Chrome. Can anyone point out why Chrome can't find the sources which are clearly included in the generated…
Allen
  • 91
  • 3
2
votes
0 answers

gulp: concat, uglify and inline JavaScript - sourcemaps not working

I'm working on a AngularJS application and using gulp for the build-process. I have multiple JavaScript files (for controllers, services, directives, etc.) which I concat, uglify and then inline into an index.html in order to minimize the amount of…
PzYon
  • 2,963
  • 3
  • 16
  • 27
2
votes
1 answer

gulp-sourcemaps, Uncaught SyntaxError: Unexpected token :

Background: I am trying to setup source mapping with my Gulp Scripts task. I believe the mapping is working ( see below that the 'hello world' console.log is referencing main.js:10, rather than all.min.js), but I am receiving a console error :…
Daniel Dropik
  • 773
  • 1
  • 8
  • 17
2
votes
1 answer

Chrome dev tools only showing one scss file

I'm running gulp to compile my sass files. The problem I'm running into is I'm only seeing one scss file when inspecting an element. If you need further information let me know. I'm running node v0.12.2 My setup below: SCSS…
2
votes
1 answer

How to make sourcemap and comressped file using gulp

I'm trying to generate a sourcemap and minify it but it is not working. file position: test/test.less output: file name test/test.less map file test.css.map compressed file test.min.css When I load that file on browser then it is not loaded, but…
2
votes
1 answer

Gulp inline sourcemaps not working

I'm trying to get the sourcemaps to work with Gulp. I'm using gulp-ruby-sass and gulp-sourcemaps. The inline sourcemap gets inserted in the CSS file but it still doesn't work in Chrome even though I've enabled sourcemaps. I can still only see the…
Brigante
  • 1,921
  • 6
  • 23
  • 33
2
votes
1 answer

Best way to concat and uglify js in gulp

I am trying to do automation to concat and uglify js in gulp. Here is my gulpfile.js: gulp.task('compressjs', function() { gulp.src(['public/app/**/*.js','!public/app/**/*.min.js']) .pipe(sourcemaps.init()) .pipe(wrap('(function(){"use…
user1995781
  • 19,085
  • 45
  • 135
  • 236
2
votes
1 answer

Gulp Sourcemaps path

I am trying to use gulp-sourcemaps to generate source map. Example code: gulp.task('compressjs', function() { gulp.src(['public/js/**/*.js','!public/js/**/*.min.js']) .pipe(sourcemaps.init()) .pipe(uglify()) .pipe(rename({ …
user1995781
  • 19,085
  • 45
  • 135
  • 236
2
votes
1 answer

Gulp browserify JS but replace revision references like gulp-usemin

So I've used gulp-usemin for a while and generally like it. In particular, I love the built in cache-busting ability Before