8000 make/webpack: the build mode decides whether web bundles are built for production by aivazis · Pull Request #58 · aivazis/mm · GitHub
[go: up one dir, main page]

Skip to content

make/webpack: the build mode decides whether web bundles are built for production - #58

Merged
aivazis merged 2 commits into
mainfrom
webpack-mode
Sep 27, 2026
Merged

aivazis merged 2 commits into
mainfrom
webpack-mode

Conversation

@aivazis
@aivazis aivazis commented Sep 27, 2026
Copy link
Copy Markdown
Owner

Summary

The build mode decides whether web bundles are built for production or for development, and the webpack recipe tells the project which through NODE_ENV.

The mode setting

mode.webpack.production is set in the baseline shared by every mode, so release and the distribution modes build for production, and cleared in dev. mm mode.info reports it, with the resulting NODE_ENV, and mm mode.help describes it.

The recipe

The webpack recipe runs the project's npm run build with NODE_ENV=production or NODE_ENV=development, as the mode says. The project's webpack configuration reads it to choose its mode and its source maps; a project whose configuration does not read it builds as it did before.

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

Successfully merging this pull request may close these issues.

1 participant

0