1 Star 0 Fork 0

众触应用平台/zp111_traffic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
server.js 905 Bytes
一键复制 编辑 原始数据 按行查看 历史
众触应用平台 提交于 2021-07-17 20:56 . Add files via upload
"use strict"
const fs = require("fs")
const path = require("path")
const express = require("express")
const bodyParser = require("body-parser")
const app = express()
const server = require("http").createServer(app)
const ROOT = path.normalize(__dirname + "/..")
const webpack = require("webpack")
const webpackDevMiddleware = require("webpack-dev-middleware")
const webpackConfig = require("./webpack.config")
const compiler = webpack(webpackConfig)
app.use(webpackDevMiddleware(compiler, { publicPath: "/build/" }))
app.use("/build", express.static(__dirname + '/build'))
app.get("/", (req, res) => {
res.send(HTML)
})
server.listen(8080, () => {
console.log("Express server started: http://localhost:8080")
})
const HTML = `
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>众触插件开发</title>
</head>
<body>
<div>众触插件开发</div>
</body>
</html>`
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/zcappp/zp111_traffic.git
git@gitee.com:zcappp/zp111_traffic.git
zcappp
zp111_traffic
zp111_traffic
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385