zllovesuki / slugsurvival

Source Code for SlugSurvival.com with Cloudflare Workers Site support
https://slugsurvival.com
GNU General Public License v3.0
14 stars 3 forks source link

migrate build system from browserify to webpack #24

Closed hyperupcall closed 4 years ago

hyperupcall commented 4 years ago

from issue #22, this migrates the build system from browserify to webpack. this required to two / three main changes

i kept the existing gulp js and css pipelines intact, since it didn't seem necessary to rebundle them with webpack

also the prod.js bundle size decreased from 624kiB to 552kiB

i might have missed something, but let me know if you have any questions, or if something looks off, some extra details are in the commit messages :smiley:

zllovesuki commented 4 years ago

process.env.RDB_HOST was part of the legacy code that signifies development environment. That’s was when SlugSurvival was running as one giant monolith. You can safely change that to some other sensible name 😅

Anyway, I will check it out soon. Again, thanks for the work!

zllovesuki commented 4 years ago

I'm trying to see how to best integrate the new build system with CloudFlare's Workers as the frontend is running on CF's Workers.