1 Star 0 Fork 0

Ait / github1s

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
server.js 588 Bytes
一键复制 编辑 原始数据 按行查看 历史
const Webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const webpackConfig = require('./webpack.config.js');
const proxyServer = require('./scripts/serve-dist');
const compiler = Webpack(webpackConfig);
const devServerOptions = { ...webpackConfig.devServer, open: true };
const server = new WebpackDevServer(devServerOptions, compiler);
const runServer = async () => {
console.log('Starting server...');
await server.start();
};
runServer();
proxyServer.listen(5001, () => {
console.log('Proxy server is running at http://localhost:5001');
});
1
https://gitee.com/aitchouyz/github1s.git
git@gitee.com:aitchouyz/github1s.git
aitchouyz
github1s
github1s
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891