[bug] generate and link complete sourcemap

This commit is contained in:
Giacomo Rossetto 2019-08-25 22:19:30 +02:00 committed by Kombie
parent f3695f3bd2
commit 99df4ec16e
4 changed files with 23 additions and 9 deletions

View File

@ -97,27 +97,41 @@ const build = {
.pipe(dest(path.build + '/css')) .pipe(dest(path.build + '/css'))
}, },
jsDependencies: function() { jsDependencies: function() {
return src(jsDependencies) return src(jsDependencies, {
sourcemaps: true
})
.pipe(concat(filename.jsDependencies)) .pipe(concat(filename.jsDependencies))
.pipe(dest(path.build + '/js')) .pipe(dest(path.build + '/js', {
sourcemaps: true
}))
}, },
jsFiles: function() { jsFiles: function() {
return src(jsFiles) return src(jsFiles, {
sourcemaps: true
})
.pipe(concat(filename.jsFiles)) .pipe(concat(filename.jsFiles))
.pipe(uglify()) .pipe(uglify())
.pipe(dest(path.build + '/js', { .pipe(dest(path.build + '/js', {
sourcemaps: '.' sourcemaps: true
})) }))
}, },
js: function() { js: function() {
return src([path.build + '/js/' + filename.jsDependencies, path.build + '/js/' + filename.jsFiles]) return src([
path.build + '/js/' + filename.jsDependencies,
path.build + '/js/' + filename.jsFiles
], {
sourcemaps: true
})
.pipe(concat(filename.js)) .pipe(concat(filename.js))
.pipe(dest(path.build + '/js', { .pipe(dest(path.build + '/js', {
sourcemaps: '.' sourcemaps: '.'
})) }))
}, },
jsClean: function() { jsClean: function() {
return src([path.build + '/js/' + filename.jsDependencies, path.build + '/js/' + filename.jsFiles]) return src([
path.build + '/js/' + filename.jsDependencies,
path.build + '/js/' + filename.jsFiles
])
.pipe(clean()) .pipe(clean())
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "nighttab", "name": "nighttab",
"version": "3.75.0", "version": "3.75.1",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -1,6 +1,6 @@
var version = (function() { var version = (function() {
var current = "3.75.0"; var current = "3.75.1";
var compare = function(a, b) { var compare = function(a, b) {
var pa = a.split("."); var pa = a.split(".");

View File

@ -2,7 +2,7 @@
"name": "nightTab", "name": "nightTab",
"short_name": "nightTab", "short_name": "nightTab",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"version": "3.75.0", "version": "3.75.1",
"manifest_version": 2, "manifest_version": 2,
"chrome_url_overrides": { "chrome_url_overrides": {
"newtab": "index.html" "newtab": "index.html"