Skip to content
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

CHANGE index.html.ejs to use files over chunks && UPGRADE generate-page-webpack-plugin #4134

Merged
merged 1 commit into from
Sep 8, 2018

Conversation

ndelangen
Copy link
Member

Issue: generate-page-webpack-plugin was using object spread & it now exposes a more reliable entrypoint.getFiles() as files.

This PR upgrades to the latest version & changes the html.ejs template to use the files property.

This implements compatibility with https://github.com/webpack-contrib/mini-css-extract-plugin, possibly other css extraction plugins as well.

<% if (options.headHtmlSnippet) { %>
<%- options.headHtmlSnippet %>
<% } %>

<% if (options.links) { %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there still a point on having options.links when we don't (well, can't) use them?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well not really no. we do not expose a way to set this.

@Hypnosphi Hypnosphi merged commit 839fda4 into master Sep 8, 2018
@Hypnosphi Hypnosphi deleted the fix/generate-page-css-extraction branch September 8, 2018 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants