Skip to content

fix(pg-manual): respect --mode so npm run build produces a production bundle#56

Closed
dobby-coder[bot] wants to merge 1 commit into
mainfrom
fix/pg-manual-webpack-mode
Closed

fix(pg-manual): respect --mode so npm run build produces a production bundle#56
dobby-coder[bot] wants to merge 1 commit into
mainfrom
fix/pg-manual-webpack-mode

Conversation

@dobby-coder

@dobby-coder dobby-coder Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Closes #51.

  • Drop the hardcoded mode: 'development' constant from webpack.config.js.
  • Pass --mode explicitly in scripts: build → production, dev → development.

No CI workflow in this repo; please review manually.

… bundle

The webpack config hardcoded `mode: 'development'`, so `npm run build` always
emitted a dev bundle (unminified, with source maps, NODE_ENV unset). Drop the
hardcoded constant and pass `--mode` from each npm script:

- `npm run build` → `webpack --mode production` (minified, tree-shaken)
- `npm run dev` → `webpack serve --mode development`

Closes #51
@dobby-coder dobby-coder Bot requested a review from rubenhensen May 28, 2026 23:37
@dobby-coder

dobby-coder Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

Trimmed the PR body to match no-justification-paragraphs-for-simple-changes: a 4-line config change doesn't need a Problem/Change/Verification scaffold restating context that already lives in #51. Code unchanged.

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.

pg-manual: webpack mode hardcoded to 'development' — npm run build produces dev bundle

1 participant