|
@@ -38,18 +38,12 @@ hexo.extend.renderer.register('es6', 'js', function(data, options, callback) {
|
|
|
}
|
|
|
hexo.log.i('hexo-renderer-uppyexamples: read: ' + tmpFile);
|
|
|
|
|
|
- callback(null, bundledJS);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- var finalDest = data.path.replace('/src/', '/public/')
|
|
|
- finalDest = finalDest.replace('.es6', '.js');
|
|
|
|
|
|
- setTimeout(function(){
|
|
|
- hexo.log.i('hexo-renderer-uppyexamples: applying hack for: ' + finalDest);
|
|
|
- fs.writeFileSync(finalDest, bundledJS);
|
|
|
- }, 1000)
|
|
|
+
|
|
|
+
|
|
|
+ bundledJS = bundledJS.replace(/</g, ' < ');
|
|
|
|
|
|
+ callback(null, bundledJS);
|
|
|
});
|
|
|
});
|
|
|
});
|