Skip to content

Add default value for output.public #1311

@esamattis

Description

@esamattis
  • Operating System: any
  • Node Version: v8.9.4
  • NPM Version: 5.6.0
  • webpack Version: 4.0.0-beta.1
  • webpack-dev-server Version: 3.0.0-beta.2
  • This is a bug
  • This is a modification request

Code

  // webpack.config.js
  // No config :)

Since #1295 got closed I'm opening a new issue of a feature request I mentioned there.

Could webpack-dev-server provide a default for the output.publicPath config? With this webpack-dev-server could be also used without any config like Webpack 4.

I'd propose the config to be

output: {
  publicPath: "/dist",
}

because it matches the default Webpack 4 ouput directory.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions