asprouse / serverless-webpack-plugin

Use Webpack to optimize your Serverless Node.js Functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-mysql2 works with uglifyjs

thewillhuang opened this issue · comments

    new webpack.optimize.UglifyJsPlugin({
      compress: {
        unused: true,
        dead_code: true,
        warnings: false,
        drop_debugger: true,
      },
      comments: false,
      mangle: false,
    }),

mangle:false

the above setting will allow node-mysql2 to work, not really an issue per say but just a discovery for modules that have problems,