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

Path to source map is wrong

I use the packages gulp-less and gulp-sourcemaps. My less file is located under Styles/main.less, but the generated source map points to source/main.less (where source/ seems to be a prefix). How to fix this, so the source map correctly points to…
NewGulpUserxx
  • 225
  • 4
  • 7
2
votes
1 answer

How to deploy project local to production server using gulp?

I want to deploy my project local to production server. At my local machine I am using gulp build gulp serve command. This command is redirected to me at http://localhost:3000. When I added code on production server and run these command. it is…
2
votes
0 answers

Gulp and React require is not defined and browserify not working

I have app structure: -- dist - index.html -- js - index.js - package.json - package-lock.json - gulpfile.js In index.html I have this: Title
Petr
  • 1,853
  • 2
  • 25
  • 49
2
votes
0 answers

How to fix Sourcemap pointing to wrong file/line?

I've created a Gulp Task that will compile my application with browserify/babelify and would love to have sourcemaps for it. However the sourcemaps point to the wrong file / line. Since I'm not able to post images (because of my reputation required…
Kapulara
  • 301
  • 1
  • 6
2
votes
2 answers

How to compile SASS and minify CSS and create its map with gulp 4 in same task

How to compile SASS and minify CSS and create its map with gulp 4 in same task Im using Gulp 4, i wonder if there is a way to put the css with its map and also put the css minified with its map, But in the same task, i mean something like this: -…
2
votes
1 answer

Gulp AssertionError [ERR_ASSERTION]: Task function must be specified after Node and NPM update

I just started learning gulp and i followed this tutorial series: https://www.youtube.com/watch?v=ax0ykSVPufs&list=PLriKzYyLb28lp0z-OMB5EYh0OHaKe91RV&index=7 I got this all working until i updated my node and npm versions,i encountered an error.…
Twirlman
  • 1,109
  • 2
  • 12
  • 30
2
votes
1 answer

Change the destination path of files in Gulp

I trying to create dynamic gulp task which will loop through all files and folders and concat/compile it in corresponding folders. Folders structure are for example: theme/framework/modules/module-1/assets/css/scss/scss-file-1.scss and…
Nenad
  • 23
  • 1
  • 4
2
votes
0 answers

gulp-sourcemaps error with legacy.js

Hi i'm trying to create the sourceMap for my css. I gave sass files. My task works perfectly but when i add the sourcemap.init et sourcemap.Write i get an error Here is my task gulp.task('sass', function() { // Initialize var scssFilesToProcess…
Alex.W
  • 41
  • 4
2
votes
0 answers

Debug bundled JavaScript file in Visual Studio 2017 with gulp-sourcemaps

I have an asp.Net Core application with AngularJS code with the following task in gulpfile.js: gulp.task("concat_app:js", function () { return gulp.src(js_app, { base: 'wwwroot/' }) .pipe(sourcemaps.init({ loadMaps: true, …
2
votes
0 answers

Incorrect css/scss sourcemap line numbers

Soucemaps line numbers are incorrect for multiple selectors that are on the same line. When selectors have been split into separate lines, the sourcemap line numbers are correct, otherwise they are off by one. Any idea why it behaves like this? Am…
user1275105
  • 2,643
  • 5
  • 31
  • 45
2
votes
1 answer

Gulp-cssmin Preventing Inline Sourcemaps from Working

I have a Gulpfile that uses gulp-cssmin to minify my CSS, and I am also trying to get inline sourcemaps using gulp-sourcemaps (see code below). Without piping anything through Cssmin, my inline sourcemaps totally work. But when I try to pipe…
ael1706
  • 53
  • 1
  • 8
2
votes
0 answers

When to use {loadMaps: true} setting in gulp sourcemaps initialization?

I am trying to find out if I need to use option of {loadMaps: true} in initialization. Help isn't clear about when and why you would need this option: https://github.com/floridoo/gulp-sourcemaps#load-existing-source-maps I'm running gulp watch task…
cosmosb
  • 325
  • 2
  • 4
  • 7
2
votes
1 answer

File not found with singular glob for a temp file

I'm new to the Gulp system and I'm trying to get my AngularJS application up and running. Using Yeoman, I got a standard set of gulp tasks, but one of them is failing with an error message. I've narrowed it down to a specific line, but I don't know…
Jeffrey Getzin
  • 531
  • 1
  • 6
  • 11
2
votes
1 answer

Why is 'gulp watch' not updating?

There are probably a couple of little style issues here, but mostly this works. However, it doesn't seem to be watching changes to styles/*.scss files or new SCSS in that folder. Same thing with Javascript: scripts/*.js isn't updating on…
roberto tomás
  • 4,435
  • 5
  • 42
  • 71
2
votes
2 answers

Incorrect source maps when using Gulp with source maps plugin

I have recently started using Gulp as I much prefer the syntax over Grunt and whilst I like it for the most part I have noticed when using Chrome or any browser for that matter it tells me the incorrect line mappings when looking in the…
Brett
  • 19,449
  • 54
  • 157
  • 290