更新时间:2023-02-08 19:49:51
你可以使用带有target:'node'的webpack,它会内联所有必需的模块并将所有内容导出为单个,独立,一个文件,nodejs模块
You can use webpack with target: 'node', it will inline all required modules and export everything as a single, standalone, one file, nodejs module
http://webpack.github.io/docs/configuration.html#target
如何将多文件node.js应用程序转换为单个文件?
如何将node.js应用程序转换为cordova