app.use('/node_modules',express.static(path.join(__dirname,'/node_modules'))
After app.js
the code is configured in, you can node_modules
access the /node_modules
directory anywhere in the project without adding the full path.
app.use('/node_modules',express.static(path.join(__dirname,'/node_modules'))
After app.js
the code is configured in, you can node_modules
access the /node_modules
directory anywhere in the project without adding the full path.