Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scinos/gulp-sanitize-sourcemaps
Gulp task used to clean up generated sourcemaps.
https://github.com/scinos/gulp-sanitize-sourcemaps
gulp sourcemap
Last synced: 5 days ago
JSON representation
Gulp task used to clean up generated sourcemaps.
- Host: GitHub
- URL: https://github.com/scinos/gulp-sanitize-sourcemaps
- Owner: scinos
- Created: 2017-04-15T03:01:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-15T03:04:04.000Z (over 7 years ago)
- Last Synced: 2024-12-05T21:07:10.228Z (22 days ago)
- Topics: gulp, sourcemap
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/gulp-sanitize-sourcemaps
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gulp-sanitize-sourcemaps
Gulp task used to clean up generated sourcemaps.
# Usage
```
const gulp = require('gulp');
const babel = require('gulp-babel');
const sourcemaps = require('gulp-sourcemaps');
const sanitize = require('gulp-sanitize-sourcemaps');gulp.task('default', () => {
return gulp.src('source.js')
.pipe(sourcemaps.init())
.pipe(babel({ presets: ['es2015'] }))
.pipe(sanitize())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('test'));
});
```It will clean up the sourcemap and make sure that there are not duplicated mappings.