Skip to content

Concepts - Mode: Add missing differences between production and development #1947

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

Closed
edmorley opened this issue Mar 23, 2018 · 4 comments
Closed

Comments

@edmorley
Copy link
Contributor

From:
#1856 (comment)

The production mode enables a few more plugins than currently listed, eg FlagIncludedChunksPlugin, OccurrenceOrderPlugin, SideEffectsFlagPlugin, FlagDependencyUsagePlugin:
https://github.com/webpack/webpack/blob/4f399322ad1922ae7bafdeea1c4d83bf9c9851a7/lib/WebpackOptionsDefaulter.js#L192-L207
https://github.com/webpack/webpack/blob/fde018300aa52262c384e937c408d5dd97d62951/lib/WebpackOptionsApply.js#L307-L318

And development mode also enables NamedChunksPlugin.

Page in question:
https://github.com/webpack/webpack.js.org/blob/master/src/content/concepts/mode.md

@EugeneHlushko
Copy link
Member

please close this one @montogeek

@edmorley
Copy link
Contributor Author

edmorley commented Apr 3, 2018

@EugeneHlushko why was this closed?
The issue still applies to master and next.

@EugeneHlushko
Copy link
Member

Hmm you are right, my mistake here @edmorley
Will fix this asap

@shelldandy
Copy link

This has been added properly on text but not on the code-diff that appears below

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants