Skip to content

Commit

Permalink
add sourcemap url by default
Browse files Browse the repository at this point in the history
fixes #2863
  • Loading branch information
joaomoreno committed Feb 16, 2016
1 parent 2de7cfa commit 43f6e24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions build/gulpfile.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ var File = require('vinyl');
var underscore = require('underscore');
var bundle = require('./lib/bundle');
var util = require('./lib/util');
var root = path.dirname(__dirname);
var commit = util.getVersion(root);

var tsOptions = {
target: 'ES5',
Expand Down Expand Up @@ -243,6 +245,9 @@ exports.minifyTask = function (src, addSourceMapsComment) {
.pipe(minifyCSS())
.pipe(cssFilter.restore)
.pipe(sourcemaps.write('./', {
sourceMappingURL: function (file) {
return 'https://ticino.blob.core.windows.net/sourcemaps/' + commit + '/' + file.relative + '.map';
},
sourceRoot: null,
includeContent: true,
addComment: addSourceMapsComment
Expand Down
2 changes: 1 addition & 1 deletion build/gulpfile.vscode.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ gulp.task('optimize-vscode', ['clean-optimized-vscode', 'compile-build', 'compil
}));

gulp.task('clean-minified-vscode', util.rimraf('out-vscode-min'));
gulp.task('minify-vscode', ['clean-minified-vscode', 'optimize-vscode'], common.minifyTask('out-vscode', false));
gulp.task('minify-vscode', ['clean-minified-vscode', 'optimize-vscode'], common.minifyTask('out-vscode', true));

// Package
var product = require('../product.json');
Expand Down

0 comments on commit 43f6e24

Please sign in to comment.