Skip to content

Usage With NPM Scripts modify "serve": "webpack serve" #2813

Closed
@blackraccoon000

Description

@blackraccoon000
  • This is a bug
  • This is a modification request

Code

// README.md
"scripts": {
  "start:dev": "webpack-dev-server"
}
// modify code
Case:webpack-cli 3
package.json

{
  "scripts": {
    "serve": "webpack-dev-server"
  },
  "devDependencies": {
    "webpack-cli": "^3.3.12"
  }
}

Case:webpack-cli 4
package.json

{
  "scripts": {
    "serve": "webpack serve"
  },
  "devDependencies": {
    "webpack-cli": "^4.0.0"
  }
}

Expected Behavior

Actual Behavior

For Bugs; How can we reproduce the behavior?

For Features; What is the motivation and/or use-case for the feature?

Beginners get confused by the guide when using webpack-dev-sercer.
This change can reduce the burden on the answer.

webpack/webpack-cli#1948
#2029 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions