javascript - Does Node.js code running on the server need to be compiled?
迷茫
迷茫 2017-06-05 11:13:44
0
2
746

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?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
淡淡烟草味

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!

Peter_Zhu

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template