-
Notifications
You must be signed in to change notification settings - Fork 139
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
Making template compatible with html-webpack-plugin
injection
#83
base: master
Are you sure you want to change the base?
Conversation
Upstream functionalities of `html-webpack-plugin` aren't duplicated anymore which dictates injection to be enabled in contrast to previous requirements. Template is greatly simplified by utilizing modern es6 constructs and preparing required data inside topmost ejs block. `appMountId` defaults to `app` in case `appMountIds` haven't been provided. New option is added: `description` - renders as appropriate meta. New section is added: `<noscript>` - displays friendly warning in case javascript execution is turned off. BREAKING CHANGE: `baseHref`, `meta`, `favicon`, `inlineManifestWebpackName` & `devServer` options are deprecated!
Webpack now uses in-memory filesystem. Assertations are improved by matching relevant portions of generated html using regexes. Introduced ESLint with semistandard code style.
Modernizing example to match webpack & html-webpack-template changes.
Generate xhtml compliant link tags when `xhtml` flag is set to true.
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.
@vladimyr , thanks for giving this package some love and attention. I appreciate your cleanup and addressing some of the outstanding issues.
There is one breaking change that I've noticed that I'd like to revert on: that's the removal of arbitrary meta tags. I'd like to get that back. Are there other breaking changes that I'm not noticing? If so, I'd love to give those parts another review too.
The addition of the test suite is great! Is there a test that exercises the main premise of this PR, being able to inject via html-webpack-plugin?
If you're willing to make the meta change, I think we're close to a merge here. Thank you!
<base href="<%= htmlWebpackPlugin.options.baseHref %>"><% | ||
} %><% | ||
|
||
if (Array.isArray(htmlWebpackPlugin.options.meta)) { %><% |
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.
I would like to keep the ability to add meta tags as an array -- a user can add as many of the unanticipated kind of meta tags as they want. This package has drifted this direction as more and more people have wanted it to do more things: Just allow general setting of html via json.
Hey @vladimyr , how are you feeling about these changes that you've made (for the better of the project)? And about the requested adjustment for your meta implementation? I'd love to get this merged in for all to enjoy. |
Hi @jaketrent 👋 Sorry for being unresponsive. I had to shift my priorities but rest assured that I'm also eager to get it merged so community gets benefit from it but me too because I'm also using it inside my own projects.
Um, I did that because
I removed Same applies to I altered I removed I removed I believe those are all breaking changes.
Well that is basically every test that has been added? Each test uses webpack programmatically and compiles
Great? 😁 Only reason I haven't turned this from draft to proper PR yet are missing documentation changes. Docs really need some love and having updating guide would be really nice. I have two ideas regarding docs:
Long story short I would personally like to see necessary documentation changes happen too. I'm willing to make those but can't guarantee on ETA. If you want you can merge it in current state so we make it 2-step upgrade or you can wait for me finishing it first which is totally up to you! 🎉 |
@vladimyr Thanks for the additional context on the changes you made. Please don't feel pressure on an ETA. This is all for the love of the project, right. Please take care of your other life priorities first. Regarding the breaking changes, here's what I'm understanding: You removed
With the additional info, I'm all for these changes. I think what you point out is correct, we need a bit of documentation to point people in the right direction for these options if they were previously expecting to find them here. And regarding your documentation points:
Good luck as you get back around to this. If it sits for a long while, that's also just fine. Thanks again. |
🚧 This resolves #61 & #79