1 Star 0 Fork 21

CPLABonus/Online-Store

forked from 刘元涛/Online-Store 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
server.js 548 Bytes
一键复制 编辑 原始数据 按行查看 历史
liuyuantao 提交于 2018-03-30 14:38 +08:00 . 项目初始化
var express = require("express");
var webpackDevMiddleware = require("webpack-dev-middleware");
var webpackHotMiddleware = require("webpack-hot-middleware");
var webpack = require("webpack");
var webpackConfig = require("./webpack.config");
var app = express();
var compiler = webpack(webpackConfig);
app.use(webpackDevMiddleware(compiler, {
publicPath: 'http://localhost:3000/',
index: 'index.html'
}))
app.use(webpackHotMiddleware(compiler, {
log: console.log
}))
app.listen(3000, function() {
console.log("listening on port 3000");
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/CPLiu/Online-Store.git
git@gitee.com:CPLiu/Online-Store.git
CPLiu
Online-Store
Online-Store
master

搜索帮助