blob: f61ccad7c64427263c45b819bacd39c5fc8b25de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
const loaderUtils = require('loader-utils');
module.exports = function(input) {
const { text } = loaderUtils.getOptions(this);
return input + text;
};
module.exports.pitch = function(remainingReq, precedingReq, input) {
console.log(`
Remaining request: ${remainingReq}
Preceding request: ${precedingReq}
Input: ${JSON.stringify(input, null, 2)}
`);
return "pitched";
};
|