13 lines
363 B
JavaScript
13 lines
363 B
JavaScript
const express = require("express");
|
|
const path = require("path");
|
|
|
|
const app = express();
|
|
|
|
app.get("/", express.static(path.join(__dirname, "./index.html")));
|
|
|
|
app.use("/dist", express.static(path.join(__dirname, "../dist")));
|
|
app.use(express.static(path.join(__dirname, "./")));
|
|
|
|
app.listen(8030, () => {
|
|
console.log("Listening to http://localhost:8030/");
|
|
}); |