-
Notifications
You must be signed in to change notification settings - Fork 8
wip: Improvements #2
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
base: master
Are you sure you want to change the base?
Conversation
|
Hey! Thanks for this! Regarding the multiples patches you propose:
I'm gonna wait for what Sean as to say about the butternut sourcemap support |
|
Thanks for the feedback! This is why I sent the pr so earlier 😄
This was using only
Yeah makes sense, will change 👍 .
Sorry I think that I didn't get it. By // ...
const files = getFiles(chunks, compilation)
for (const file of files) {
if (!ModuleFilenameHelpers.matchObject(matchObjectOpts, file)) {
return
}
// ...
}
// ...
function getFiles (chunks, compilation) {
const files = []
chunks.forEach((chunk) => files.push(...chunk.files))
files.push(...compilation.additionalChunkAssets)
return files
}
Yes, webpack/webpack#560 (I will add this link to the commit msg).
Yes I'm doing the same and also playing with |
|
Looking to this webpack/webpack#1079 it seems that include and exclude config patterns it's really confusing, it works only on the post processed chunks (not on every file like loaders). Now I think that it's not worth it, lets keep a minimal api surface area, wdyt? |
|
Yep I agree, if you could make a separate PR containing the change of regex, that would be better for me. If you think giving the ability to the user to change this regex would be helpful, then we can pass it as a second parameter. But do we really need it since butternut only supports js anyway? |
|
Cool I will sent another pr with that. Yes you convince me, you are right, I can't think in a use case for that feature lol |
2a782bb to
4ceba83
Compare
4ceba83 to
fd9f8ce
Compare
WIP
TODO
Hello, I'm eager to use butternut on apps that uses webpack. This pr fix and adds some things that I see missing while looking the code of
babili-webpack-pluginanduglify-webpack-plugin.Improvements
additionalChunkAssets