Commit cb0aa747 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] add sourcemap option to typescript compiler

parent 5669fef3
......@@ -41,6 +41,10 @@ module.exports = function() {
}))
.pipe(gulp.dest(settings.getPath() + '/' + config.directories.javascriptDest));
} else {
let sourcemapsPath;
if (config.directories.hasOwnProperty('javascriptSourceMaps') && config.directories.javascriptSourceMaps !== 'inline') {
sourcemapsPath = path.relative(settings.getPath() + '/' + config.directories.javascriptDest, settings.getPath() + '/' + config.directories.javascriptSourceMaps);
}
return browserify
.plugin(tsify, {noImplicitAny: true})
.bundle()
......@@ -56,7 +60,7 @@ module.exports = function() {
.pipe(plugins.checkFilesize({
enableGzip: true
}))
.pipe(plugins.sourcemaps.write(path.relative(settings.getPath() + '/' + config.directories.javascriptDest, settings.getPath() + '/' + config.directories.javascriptSourceMaps)))
.pipe(plugins.sourcemaps.write(sourcemapsPath))
.pipe(gulp.dest(settings.getPath() + '/' + config.directories.javascriptDest));
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment