fix gulp extensions

This commit is contained in:
Felix Schulze 2019-11-11 00:29:11 +01:00
parent 85a402bb6f
commit c1544dd1ad

View File

@ -128,7 +128,7 @@ var buildScripts = function (done) {
// Run tasks on script files
return src(paths.scripts.input)
.pipe(hashsrc({build_dir:paths.output,src_path:"src",hash_len:"6",query_name:"v",exts:[".js"],
.pipe(hashsrc({build_dir:paths.output,src_path:"src",hash_len:"6",query_name:"v",exts:[".json",".webp",".jpg",".css",".png",".ico",".js"],
regex:/\s*(?:(")([^"]*)|(')([^']*))/ig,
analyze: function analyze(match){return {prefix: "'",link:match[4],suffix: ''};}
}))