Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

html-template: Update to [email protected] #1145

Merged
merged 1 commit into from
Sep 28, 2018
Merged

html-template: Update to [email protected] #1145

merged 1 commit into from
Sep 28, 2018

Conversation

edmorley
Copy link
Member

The new version includes jantimon/html-webpack-plugin#1048, which means we can remove the temporary additions made in #1121.

@edmorley edmorley added this to the v9 milestone Sep 27, 2018
@edmorley edmorley self-assigned this Sep 27, 2018
The new version includes jantimon/html-webpack-plugin#1048, which
means we can remove the temporary additions made in #1121.
@eliperelman
Copy link
Member

@edmorley could you tell me how this is a breaking change?

@edmorley
Copy link
Member Author

It's only breaking in a pedantic sense - the upstream implementation (that I wrote) uses mode to determine whether "in production", whereas my temporary workaround used NODE_ENV. Most of the time the two approaches will have the same result since Neutrino forces the two to match, apart from in the else case here:

} else {
// Default NODE_ENV to the more strict value, to save needing to do so in .eslintrc.js.
// However don't set `mode` since webpack already defaults it to `production`, and in so
// doing outputs a useful message informing users that they are relying on the defaults.
process.env.NODE_ENV = 'production';
}

@edmorley
Copy link
Member Author

edmorley commented Sep 27, 2018

Oh actually, webpack defaults mode to production itself, so this can never be breaking, even in that else case.

@edmorley
Copy link
Member Author

edmorley commented Sep 28, 2018

Merging this now since otherwise Renovate will shortly be opening up a duplicate PR (but without the cleanup changes) due to reaching end of the unpublish-safe 24 hour window. Happy to make any changes from further review comments in a follow-up if needed.

@edmorley edmorley merged commit 95847b9 into neutrinojs:master Sep 28, 2018
@edmorley edmorley deleted the html-webpack-plugin-4.0.0-beta.1 branch September 28, 2018 11:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants