Static Files in Express
noun
say it: “STAT-ik fylez in ek-SPRES” /ˈstætɪk faɪlz ɪn ɪkˈsprɛs/
Files such as HTML, CSS and pictures that Express sends as they are from a folder, using express.static.
What is Static Files in Express?
express.static serves files (HTML, CSS, images) from a folder.
app.use(express.static('public'));
In a sentence
- “The site's logo and stylesheet are static files in the public folder.”
- “app.use(express.static("public")) serves the static files.”
Level: Apprentice · More Node.js terms at this level
Updated