render html file at port localhost 8080
const express = require('express'); const path = require('path'); const app = express(); app.get('/', function(req, res) { res.sendFile(path.join(__dirname, '/index.html')); }); app.listen(8080);
I create server.js file without call express And render html file inside it But when I using three.js script via CDN inside the html file My page render nothing!
do this npm create vite@latest and paste cdn link in the index.html it generates for you
Обсуждают сегодня