Removed sourcmapping URLs in build script.
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user