Removed sourcmapping URLs in build script.

This commit is contained in:
2019-04-16 12:16:29 +02:00
parent b3902fbcb1
commit b07d76ce1d
4 changed files with 67 additions and 6 deletions
+3
View File
@@ -2,6 +2,7 @@ const {src, dest, parallel} = require('gulp');
const uglify = require('gulp-uglify');
const rename = require('gulp-rename');
const concat = require('gulp-concat');
const replace = require('gulp-replace');
function vendors() {
return src([
@@ -19,6 +20,7 @@ function vendors() {
'./lib/3rdparty/convertPointFromPageToNode.js',
], {sourcemaps: false})
.pipe(concat('iwmlib.3rdparty.js'))
.pipe(replace(/^\/\/# sourceMappingURL=.*$/gmi, ''))
.pipe(dest('dist', {sourcemaps: false}))
.pipe(rename({extname: '.min.js'}))
.pipe(uglify())
@@ -32,6 +34,7 @@ function preload() {
'./lib/3rdparty/convertPointFromPageToNode.js',
], {sourcemaps: false})
.pipe(concat('iwmlib.3rdparty.preload.js'))
.pipe(replace(/^\/\/# sourceMappingURL=.*$/gmi, ''))
.pipe(dest('dist', {sourcemaps: false}))
.pipe(rename({extname: '.min.js'}))
.pipe(uglify())