mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-23 08:15:27 +00:00
15 lines
372 B
JavaScript
15 lines
372 B
JavaScript
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;
|
|
};
|