Skip to content

Commit 99df4ec

Browse files
Jackymancs4zombieFox
authored andcommitted
[bug] generate and link complete sourcemap
1 parent f3695f3 commit 99df4ec

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

‎gulpfile.js‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,27 +97,41 @@ const build ={
9797
.pipe(dest(path.build+'/css'))
9898
},
9999
jsDependencies: function(){
100-
returnsrc(jsDependencies)
100+
returnsrc(jsDependencies,{
101+
sourcemaps: true
102+
})
101103
.pipe(concat(filename.jsDependencies))
102-
.pipe(dest(path.build+'/js'))
104+
.pipe(dest(path.build+'/js',{
105+
sourcemaps: true
106+
}))
103107
},
104108
jsFiles: function(){
105-
returnsrc(jsFiles)
109+
returnsrc(jsFiles,{
110+
sourcemaps: true
111+
})
106112
.pipe(concat(filename.jsFiles))
107113
.pipe(uglify())
108114
.pipe(dest(path.build+'/js',{
109-
sourcemaps: '.'
115+
sourcemaps: true
110116
}))
111117
},
112118
js: function(){
113-
returnsrc([path.build+'/js/'+filename.jsDependencies,path.build+'/js/'+filename.jsFiles])
119+
returnsrc([
120+
path.build+'/js/'+filename.jsDependencies,
121+
path.build+'/js/'+filename.jsFiles
122+
],{
123+
sourcemaps: true
124+
})
114125
.pipe(concat(filename.js))
115126
.pipe(dest(path.build+'/js',{
116127
sourcemaps: '.'
117128
}))
118129
},
119130
jsClean: function(){
120-
returnsrc([path.build+'/js/'+filename.jsDependencies,path.build+'/js/'+filename.jsFiles])
131+
returnsrc([
132+
path.build+'/js/'+filename.jsDependencies,
133+
path.build+'/js/'+filename.jsFiles
134+
])
121135
.pipe(clean())
122136
}
123137
}

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nighttab",
3-
"version": "3.75.0",
3+
"version": "3.75.1",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
55
"main": "index.js",
66
"scripts":{

‎src/js/version.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
varversion=(function(){
22

3-
varcurrent="3.75.0";
3+
varcurrent="3.75.1";
44

55
varcompare=function(a,b){
66
varpa=a.split(".");

‎src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightTab",
33
"short_name": "nightTab",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
5-
"version": "3.75.0",
5+
"version": "3.75.1",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)