-
Notifications
You must be signed in to change notification settings - Fork 144
Provide a way to include all assets (issue #35) #36
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank yo
u
Since a best solution to the question about differing Would it be acceptable to add a note related to that behavior to the Readme and merge this PR in the meantime? Someone who wants to use this functionality, and has that issue, could open a new issue that hopefully includes a proposed solution that works best for that use-case. I say this because I'm eagerly awaiting this functionality in the npm module, and would prefer not to keep track of when this is added. I doubt that I'm the only one working around this. 😁 I thank you, and the reviewer, for the work done on this feature! Edit: I made a fork, merging these changes, and I now see that it can't be merged immediately, contrary to what the above message may have implied. |
@umpc Thanks for the suggestions. I have updated the README to point out this potential issue. :-) |
Is there any plan to merge this? |
Agree, would be great to get this merged, but for now tests fail on....
@laysent Same thing occurs in real use, and seeing as I need to use it now, I forked yours and did a simple fix, PR'd it in your fork in case you want it laysent#1 |
I am confused by the documentation/README. Reading it looks like you can already use it for all assets. But in reality it doesn't work? Am I missing something? |
…ML - it should not be attempted to filtered as if it were a chunk, they are just files to be black/whitelisted in config
Fixed all-assets being treated as a real chunk in doesChunkBelongToHML
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
Hi @gkatsanos, @alechill has fixed an issue of loading all chunks, would you mind to try again and see if that works? |
@laysent : the fix isn't on master/release yet right? |
@laysent Thanks, CLA sorted 👍 |
@gkatsanos nope, it's only on my PR and hasn't been merged yet. |
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
@laysent alright, I'll wait for it to be merged and test ! |
There is something to do on the naming:
|
+ use pascal case: "all-assets" to "allAssets" + rename "all" to "allChunks"
@frlinw Hi, thanks for the review. I have made it all pascal case. |
Thanks for everyone's patience—I'm going to merge into (Please note that we're also thinking about an upcoming v3 release which will be informed by the options available in v2 (including in this PR), but which might revisit some of the decisions around some of the defaults, and the names used in the public interface.) |
So |
@freezy Looks like the |
This PR tries to add feature to add all assets for plugin, not just chunks. In this way, resources handled by
file-loader
can also be added (#35).Also, when I tried this version in my own project, I notice that it might be a bit annoying to use
fileBlacklist
to exclude every type of files that I don't want to include (too many assets). Thus, I also create an option namedfileWhitelist
to include resources. That might make things easier in some situation.One thing I noticed is that
file-loader
provides an option to specifypublicPath
just for assets. However, that information seems to be lost when this plugin is doing its job. In code, it is usingpublicPath
defined inoutput
. It could be an issue, if thesepublicPath
have different values. However, I am not able to find a way to work around this. Any hint will be very welcome.