Skip to content

Remove devServer.outputPath requirement #5

Closed
@chrisblossom

Description

@chrisblossom

Just a thought to make it less opinionated/remove devServer requirement when not using webpack-dev-server:

if (!compiler.options.output.path) {
    throw new Error('output.path is not defined.');
}

if (compiler.options.devServer && (compiler.options.devServer.outputPath !== compiler.options.output.path)) {
    throw new Error('output.path and devServer.outputPath must be equal.');
}

outputPath = compiler.options.output.path;

Readme could say something along the lines of "If using webpack-dev-server, devServer.outputPath must equal output.path."

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions