-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
output.filename as function doesn't work #39
Comments
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);
}) |
njbmartin
pushed a commit
to njbmartin/git-revision-webpack-plugin
that referenced
this issue
Jun 12, 2019
I ran into the same issue after upgrading |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
The text was updated successfully, but these errors were encountered: