babel-plugin-jsx/scripts/dev.js
2020-06-17 19:57:37 +08:00

17 lines
380 B
JavaScript

const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const webpackConfig = require('./webpack.base.conf');
const compiler = webpack(webpackConfig);
const devServerOptions = {
inline: true,
open: true,
hot: true,
overlay: true,
};
const server = new WebpackDevServer(compiler, devServerOptions);
server.listen(8080, '127.0.0.1');