Webpack Uglify plugin returns “Killed” on Ubuntu

后端 未结 4 518
[愿得一人]
[愿得一人] 2021-02-04 05:42

On my remote server (Ubuntu 14.04 x64), whenever I try to uglify my bundles, the process simply returns \"Killed\". When I don\'t uglify, it\'s just fine.

Has anyone ru

4条回答
  •  面向向阳花
    2021-02-04 06:21

    As @barbuza suggested, it was a memory issue. I too am using a Digital Ocean VPS that only has 512 MB of RAM (yes, I'm cheap). That's not enough for webpack's uglify plugin. Adding 2GB of swap space on the server solved the issue. I followed this article to set that up: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04

提交回复
热议问题