As mentioned in the title:
Recently, I was developing Node.js server-side code and encountered a problem during the deployment phase. Does my js code need to be packaged and compressed with webpack?
淡淡烟草味2017-06-05 11:15:44
No need, the server code is run locally, there is no need to compress (it is not transmitted at all);
webpack is a front-end packaging tool, you are the backend, so you don’t need it!
天蓬老师2017-06-05 11:15:44
No need. You can directly execute js files. If the platform version is too low and does not support the new features of es6 and es7, you need to convert it. Babel is recommended