UNPKG

400 BJavaScriptView Raw
1const merge = require('deepmerge');
2const Future = require('fluture');
3const { serve, validate } = require('./webpack');
4
5// devServer :: (Object config -> Object api) -> Future () Function
6const devServer = (config, { options }) => Future
7 .of(merge({ devServer: { host: 'localhost', port: 5000, noInfo: !options.debug } }, config))
8 .chain(validate)
9 .chain(serve);
10
11module.exports = devServer;