Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Add webpack bundle information when running in debug #486

Merged
merged 2 commits into from
Nov 28, 2017
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions packages/neutrino/src/devServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ const merge = require('deepmerge');
const Future = require('fluture');
const { serve, validate } = require('./webpack');

// server :: Object config -> Future () Function
const devServer = config => Future
.of(merge({ devServer: { host: 'localhost', port: 5000, noInfo: true } }, config))
// devServer :: (Object config -> Object api) -> Future () Function
const devServer = (config, { options }) => Future
.of(merge({ devServer: { host: 'localhost', port: 5000, noInfo: !options.debug } }, config))
.chain(validate)
.chain(serve);

Expand Down