storybook/lib/ui/example/server.js
hypnos 2e8240d176 Fix/suppress current eslint warnings.
Raise `import/no-unresolved` and `import/extensions` to error level
everywhere except `docs`
2017-10-02 01:40:46 +03:00

15 lines
424 B
JavaScript

const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const config = require('./webpack.config');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: false,
historyApiFallback: true,
}).listen(
9999,
'localhost',
// eslint-disable-next-line no-console
err => (err ? console.log(err) : console.log('Listening at http://localhost:9999/'))
);