mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-22 17:40:10 +00:00
Initial Commit Rework
This commit is contained in:
15
frontend/gulp/helpers/html-annotate-loader.js
Normal file
15
frontend/gulp/helpers/html-annotate-loader.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const path = require('path');
|
||||
const rootPath = path.resolve(__dirname + '/../../src/');
|
||||
module.exports = function(source) {
|
||||
if (this.cacheable) {
|
||||
this.cacheable();
|
||||
}
|
||||
|
||||
const resourcePath = this.resourcePath.replace(rootPath, '');
|
||||
const wrappedSource =`
|
||||
<!-- begin ${resourcePath} -->
|
||||
${source}
|
||||
<!-- end ${resourcePath} -->`;
|
||||
|
||||
return wrappedSource;
|
||||
};
|
||||
Reference in New Issue
Block a user