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

How to gulp and concatenate bower css files

Using our gulp script, we want to create different compiled & minified css files for vendor (via bower, see screenshot) and custom styles. Our task for the vendor styles does not work as expected, though. We expected it to iterate through the…
Patrick Manser
  • 1,133
  • 2
  • 12
  • 31
0
votes
0 answers

gulp sourcemaps doesn't update correct after pipe uglify and then gulpRegexp

i have problem when i use pipe uglify and then gulpRegexp the sourcemap doesnt update correctly. i check in chrome debugging tool and i cant put breakpoint in my js file. if i use only one of them uglify or gulpRegexp it's work ok var gulp =…
0
votes
0 answers

gulp babel+browserfy not compiling the functions

I have a gulp task to compile ES6 code into ES5 using babel and browserify. but when compiling it compiles all the other things except functions(). my gulp task code. gulp.task('convert', function() { return browserify({ entries:…
0
votes
1 answer

Gulp-sass : scss file not compiled + variables

I'm new on using Gulp and gulp-sourcemaps for sass files. I encouter an issue when compiling scss file. So I finally think sourcemaps is the guilt because when I open the last created css.map file, I don't find mention of my last scss file modified…
webmaster pf
  • 389
  • 1
  • 5
  • 23
0
votes
1 answer

gulp-typescript with multiple bundles and sourcemaps

I'm working on a typescript project where I need to create two different JS bundles, one bundle for admin and another bundle for everything else and generate source maps for each bundle. I've been trying to clone the js stream from gulp-typescript…
elliot-j
  • 10,709
  • 3
  • 19
  • 18
0
votes
0 answers

Trying to combine component scripts into one file with gulp-concat

I'm trying to update my compile TypeScript task (I've also tried it as a separate task as well) to combine the resulting javascript into one file. Here's my code: gulp.task('compile:ts', function () { return gulp .src(tscConfig.filesGlob)…
Troy Taylor
  • 117
  • 1
  • 2
  • 10
0
votes
1 answer

Source maps not loaded/detected from NPM package imported into create-react-app

I'm using create-react-app to develop re-usable React components that can be imported individually into other projects (these projects will typically also be create-react-app projects as well). I'm using Gulp to generate the files to be consumed…
Dave Draper
  • 1,837
  • 11
  • 25
0
votes
1 answer

How to build sourcemaps from minifyed css?

I have the project: project/ ├── css/ │ ├── map/ | │ └── style.min.css.map │ └── style.min.css └── style/ ├── _head.sass ├── _nav.sass ├── _content.sass ├── _foot.sass └── style.sass In devtools this sourcemap always…
kizoso
  • 1,216
  • 2
  • 15
  • 30
0
votes
1 answer

Create CSS sourcemaps for multiple master scss files

How do I process CSS to sourcemap files piped through individually, maintaining the filename + .map appended to it? Assuming we have the following: /assets/stylesheets/scss/ site.scss other.scss home.scss /assets/stylesheets/compiled/ …
Jared Farrish
  • 48,585
  • 17
  • 95
  • 104
0
votes
1 answer

Express Typescript Gulp in Visual Studio Code Debug

I am trying to implement express/typescript/gulp app, it works, but I still can't get it to debug using source-maps. Here is my setup Gulp File var gulp = require('gulp'), nodemon = require('gulp-nodemon'), livereload =…
Mike Zak
  • 105
  • 7
0
votes
1 answer

Sourcemaps for my Gulp Sass task dosen't work

I have problem with my Gulp task for Sass. This not generate sourcemaps. Problem is only this task, sourcemaps for my .js works fine. Anybody can check my task? gulp.task('build-css', function () { gulp.src(['src/scss/vendor.scss',…
0
votes
1 answer

Why gulp-sourcemaps output breaks with gulp-strip-css-comments?

I would like to remove all the comments from the CSS code but I have noticed that when I added gulp-strip-css-comments to my gulp task the sourcemap no longer works, even when I'm making sure that gulp-strip-css-comments keeps the comment that…
altrugon
  • 301
  • 3
  • 8
0
votes
1 answer

Compress Sass and include sourcemaps with gulp?

Is possible to compress sass and include sourcemaps in the result? If I include .pipe(cssnano()) it removes the sourcemaps: sass: function(sassFilename, basename) { return gulp.src(paths.sass + sassFilename) …
kalifa17
  • 137
  • 7
0
votes
0 answers

Gulp Sourcemaps

Trying to implement sass sourcemaps but for some reason it doesn't seem to be playing nice for sub folders. For example, below is the main.scss file that gets compiled: @import 'test'; @import 'test1'; @import 'test2'; @import 'test3'; @import…
verdond2
  • 97
  • 1
  • 4
0
votes
1 answer

Write source map in two files in the same stream

I've got a stream that generate two CSS files: An unminify and an minify one. I'm only able to write the source file in the minified one. gulp.task('styles:foehn', ['lint-styles'], function () { var processors = [ …
alienlebarge
  • 3,008
  • 5
  • 24
  • 26