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

Commits on Dec 14, 2021

  1. Configuration menu
    Copy the full SHA
    4928eb0 View commit details
    Browse the repository at this point in the history
  2. chore(deps-dev): migrate webpack-dev-server from v3 to v4

    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 committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    a18d2c2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a7727b3 View commit details
    Browse the repository at this point in the history