From 676c9235cfd2083ab009f6294183edad0396a31a Mon Sep 17 00:00:00 2001 From: Josh Kasten Date: Thu, 26 Oct 2023 18:20:18 +0000 Subject: [PATCH] remove hosting all dist file from example These are not needed as has a risk of leaking package.json details --- express_webpack/server.js | 1 - 1 file changed, 1 deletion(-) diff --git a/express_webpack/server.js b/express_webpack/server.js index 030e850c3..a692d8630 100644 --- a/express_webpack/server.js +++ b/express_webpack/server.js @@ -22,7 +22,6 @@ const options = { cert: fs.readFileSync('certs/dev-ssl.crt') } -app.use(express.static(DIST_DIR)) app.get('/', (req, res) => { res.sendFile(HTML_FILE); })