-
Notifications
You must be signed in to change notification settings - Fork 6
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
Give access to full file path in the modify callback #53
Comments
Hi man. It's a good idea, I think we can add new argument module.exports = {
plugins: [
new ModifySourcePlugin({
rules: [
{
test: /my-file\.js$/,
modify: (src, filename, path) => src + `...`
}
]
})
]
}; What do you think? |
If it was my lib then I'd replace the Because having both But I'd be absolutely fine with going the route of adding a third argument as well, since from a usage perspective it does not make a big difference 👍 :) |
Yeah it's a better idea. And bumping new major version it's a good point. I just don't know how to deal with version for webpack 4 because we have two versions - Probably we can move support for webpack 4 and webpack 5 in a single version ( I'm ready to ship this breaking improvement if we will solve this issue with versions. Let me know if you have ideas, it's will be great help for this project 😉👍 |
Thank you!! Works like a charm 👏 😃 |
Hey there!
It would be great if you could add an option to pass the full path instead just the
basename
as value for the filename argument in the modify callback.WDYT? :)
The text was updated successfully, but these errors were encountered: