Closed ndesorden closed 5 years ago
Something like this fix the issue:
compilation.mainTemplate.hooks.assetPath.tap('asset-path', (filename, chunkData) => {
return (typeof filename === 'function'
? filename(chunkData)
: filename).replace(replacePattern, data);
})
I ran into the same issue after upgrading mini-css-extract-plugin
from 0.5.0
to 0.8.0
.
Thanks for having taken the time to fix this issue already @njbmartin 🙇
With latest webpack (4.26.1) using options.filename with a function throws error when adding GitRevisionPlugin to plugins array
Console output:
Other relevant information: webpack version: 4.26.1 Node.js version: 8.11.2 Operating System: windows 10 Additional tools: