restore windows file path cache fix
This commit is contained in:
parent
a13cdc309f
commit
e65da57130
1 changed files with 8 additions and 2 deletions
|
|
@ -92,7 +92,10 @@ function lastmod(path) {
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
function getCachedFile(filePath, cpath, fn) {
|
function getCachedFile(filePath, cpath, fn) {
|
||||||
let cachePath = ".cache/" + cpath.replace(/\//g,'_'),
|
let cachePath = ".cache/" + cpath
|
||||||
|
.replace(/\//g,'_')
|
||||||
|
.replace(/\\/g,'_')
|
||||||
|
.replace(/:/g,'_'),
|
||||||
cached = fileCache[filePath],
|
cached = fileCache[filePath],
|
||||||
now = time();
|
now = time();
|
||||||
|
|
||||||
|
|
@ -184,7 +187,10 @@ function concatCode(array) {
|
||||||
array.forEach((file, index) => {
|
array.forEach((file, index) => {
|
||||||
if (file.charAt(0) === "/") {
|
if (file.charAt(0) === "/") {
|
||||||
filepath = file;
|
filepath = file;
|
||||||
cachepath = "js_mod" + file.replace(/\//g,'_');
|
cachepath = "js_mod" + file
|
||||||
|
.replace(/\//g,'_')
|
||||||
|
.replace(/\\/g,'_')
|
||||||
|
.replace(/:/g,'_'),
|
||||||
array[index] = cachepath.substring(3).replace('.js','');
|
array[index] = cachepath.substring(3).replace('.js','');
|
||||||
fileMap[cachepath.replace("js_","js/")] = filepath;
|
fileMap[cachepath.replace("js_","js/")] = filepath;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue