A minimal working configuration for backend projects in JavaScript bundled with Webpack. This app skeleton configuration has been ejected from my other project User authentication API as a minimal working configuration for future backend projects and for reference.
TODO
- Express.js - A minimalist web framework for Node.js
- Jest - A JavaScript testing library
- Webpack - A static module bundler
- Daniele Erbì - daniel-234
Webpack, even in this basic configuration, showed this warning message when run.
WARNING in ./node_modules/express/lib/view.js 81:13-25
Critical dependency: the request of a dependency is an expression
@ ./node_modules/express/lib/application.js
@ ./node_modules/express/lib/express.js
@ ./node_modules/express/index.js
@ ./src/server.js
@ ./src/index.js
The solution suggested by this issue was to use the package webpack-node-externals
to avoid bundling node-modules
.
It's inspired by this article.
This project is licensed under the MIT license.