mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 17:49:16 +08:00
17 lines
380 B
JavaScript
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');
|