We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node_modules文件太大了,我打包之后,只有很小,本地直接执行这个文件,能正常运行,但是一部署就超时
The text was updated successfully, but these errors were encountered:
问题已解决,这样配置,打包出来的就非常小了,并且可以运行 webpack配置如下:
const path = require('path'); module.exports = { entry: './app.js', // 单入口 mode: "production", output: { filename: 'pro.js', path: path.resolve(__dirname,'dist'), libraryTarget: 'commonjs2', }, target: 'node' // 这是最关键的 };
Sorry, something went wrong.
完美解决方案:https://github.com/xlzy520/serverless-webpack-express-example
70M变成1.3M
No branches or pull requests
node_modules文件太大了,我打包之后,只有很小,本地直接执行这个文件,能正常运行,但是一部署就超时
The text was updated successfully, but these errors were encountered: