mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 11:01:07 +08:00
Raise `import/no-unresolved` and `import/extensions` to error level everywhere except `docs`
15 lines
424 B
JavaScript
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/'))
|
|
);
|