-
Notifications
You must be signed in to change notification settings - Fork 0
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
Webpack 5 + favicons #39
Conversation
+ Remove dependency on sharp for including favicons / manifest.json
+ Remove a few outdated options, including some internal checks to maintain backwards compat with older versions of Hoist. + Look for supported favicon files and build manifest icons array if they exist. Same with apple-touch-icon. Log discovered icons to help make visible. + Quiet chatty dev-server logging (infrastructureLog) + Use fork of dupe pkg checker w/WP5 support, avoid deprecation warning + Include just-released @xh/eslint-config v4
I spent a while looking at this today - eager to get it in. Made some updates - please review when you have a chance. Note there's a commit or two on the hoist-react branch also related to removing some backwards compat stuff. The next-up mystery for me are these newly specific chunk names - I really want to look over what we are doing here and determine what has changed and if our approach to splitting out and then including these chunks still makes sense. Note that highlighted names are just some of the differences - you can see there are a number of files that no longer have app name in title and instead have specific HR files, etc. (Difficult to type in a comment - look closely and compare w/current build you will see whaat I mean) |
Your changes look great Anselm! Especially nice to have the script find and include those standard favicons automatically. Will look at the chunk names above. What tool are you using there to get the list? Also, I noticed that after updating the |
Regarding the ESLint issue: With ESLint 8, it now reports an indentation error on any property / method that uses decorators: eslint/eslint#15299. That's a significant part of our codebase! Unfortunately, it sounds like the maintainers of the ESLint plugin that babel uses to handle experimental features like decorators will not have the bandwidth to fix it any time soon: typescript-eslint/typescript-eslint#1824. Should we roll back the |
As we discussed a few minutes ago on chat (for the record):
|
Okay - I spent far too long on this, but I was able to significantly simplify our chunk naming & inclusion logic. Now, we've taken control of the naming to ensure that chunks are again named according to the delimited list of entry points that use them. Secondly, I've switch the logic to focus on |
# Conflicts: # configureWebpack.js
This workaround appears to clear up this issue and all the warnings it generates. I believe it effectively disables indent checking on all class properties (or something like that), but I am not too worried about that. |
Uses a custom plugin to replace the manifest.json generation that was bundled with favicons-webpack-plugin. Allows apps to either: