I’ve deployed my first site with Workers Sites, although I’ve done a lot with Workers the past six months or so. I’m not a JS dev, so I seem to be missing a lot of simple / assumed stuff.
My quick question is, I’m trying to add my existing logging infrastructure (JS from other Workers already deployed) to my Workers Site. My other projects use a Makefile to concatenate the individual JS files into a single script for uploading. Here, I’m trying to do it the “Wrangler way” . How on earth do I incorporate multiple JS files into the final
package.json's “files” doesn’t seem to do it, and I’m having trouble verifying (due to webpack) that
index.js is doing what it says. I’ve not created separate production/development stacks yet, so I’m not able to just throw it up on CF and see what happens yet.
To that end, How do I tell webpack not to minify the output? I tried placing
webpack_config = ... in
wrangler.toml, and putting it in
development mode, but wrangler borked on that saying that Sites doesn’t support webpack config… ?