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

add support for all devServer options #711

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update middleware.js
  • Loading branch information
thabti authored Mar 5, 2017
commit 7b6b8c7343caab3d6b43b146e64ff4bf3fa18bd2
3 changes: 2 additions & 1 deletion src/server/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export default function (configDir) {
}

const compiler = webpack(config);
const devServerOptions = config.devServer || {}; // allows for addition devServer options, such as stats : 'error-only'
// allows for addition devServer options, such as stats : 'error-only'
const devServerOptions = config.devServer || {};
const devMiddlewareOptions = {
noInfo: true,
publicPath: config.output.publicPath,
Expand Down