So now, you can use http://localhost:5000/resources/myImage.jpg to serve all First of all, install node-static module using NPM as below. npm install node-static. After installing node-static module, you can create static file server in Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Download for Linux (x64). 12.14.1 LTS Recommended For Most Users. Node.js will treat the following as ES modules when passed to node as the initial error as Node.js would not be able to parse the export statement in CommonJS. Absolute specifiers like 'file:///opt/nodejs/config.js' . When hooks are used they only apply to ES module loading and not to any CommonJS modules loaded. Loading CSS npm install --save-dev style-loader css-loader Now, when that module is run, a