V
V
Vladislav Khvostov2016-06-22 17:22:55
css
Vladislav Khvostov, 2016-06-22 17:22:55

How to glue sourcemap?

Now in the final file, sourcmap is written for each source file separately and chrome does not see them.

// from file 1.
(function(){
...
})
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVua25vd24i...
// from file 2.
(function(){
...
})
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVua25vd24i...
(function(){
...
})
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVua25vd24i...

Are there technologies that allow you to combine all sourcemaps and paste them from below?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
cdelphi78, 2015-11-19
@cdelphi78

if you are talking about tabs, then probably the easiest way to write a js script

A
Artem Kayun, 2016-06-22
@Kayun

This plugin wraps all manipulations with files and at the output we get one sourcemap.
https://www.npmjs.com/package/gulp-sourcemaps

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question