Получите вывод из параметров WebPack
module.exports = (options, webpack) => {
let outputFile = options.output.filename;
let outputDir = path.dirname(outputFile);
}
Samiksha Singla