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

chore(deps-dev): migrate to webpack-cli v4 & webpack-dev-server v4 轉移到 webpack-cli v4 & webpack-dev-server v4 #95

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

IepIweidieng
Copy link
Contributor

@IepIweidieng IepIweidieng commented Aug 25, 2021

This resolves #94 by upgrading webpack-dev-server to 4.0.0.
將 webpack-dev-server 升級爲 4.0.0 以修正 #94 的問題。

Since the aforementioned issue does not affect this version of webpack-dev-server, the workaround in #94 will be unnecessary if this PR is applied.
由於前述問題不影響此版本的 webpack-dev-server,套用此 PR 後將不再需要 #94 中所述的暫緩方案。

This PR is based on ccns#5
此 PR 基於 ccns#5

See commit messages for details.
詳見 commit 訊息。

@IepIweidieng
Copy link
Contributor Author

This PR branch is updated to include the changes in 7eff62e.

dependabot bot and others added 3 commits December 14, 2021 21:17
webpack-cli@4 requires webpack-dev-server@4:
https://github.com/webpack/webpack-dev-server/releases/tag/v4.0.0-beta.0

* Migrate config from v3 to v4:
https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md

* Invoke webpack-dev-server using `webpack serve` instead:
"Error: Cannot find module 'webpack-cli/bin/config-yargs' when use v5"
webpack/webpack-dev-server#2424

* Pass production/development env with `--node-env` or nothing instead:
https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md#450-2021-02-02
    * `cross-env` is no longer needed
    * Webpack sets production/development env to 'production' by default
      https://v4.webpack.js.org/configuration/mode/
@IepIweidieng
Copy link
Contributor Author

Fixed yarn.lock regression.

@IepIweidieng IepIweidieng changed the title chore(deps-dev): migrate to webpack-cli v4 & webpack-dev-server v4 chore(deps-dev): migrate to webpack-cli v4 & webpack-dev-server v4 轉移到 webpack-cli v4 & webpack-dev-server v4 Dec 9, 2022
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