Move to using webpack5 (#3197)

* Bumps a lot of the auxiliary webpack projects to latest
* Minor tweaks to get webpack5 working
* Replace css minimizer with new https://webpack.js.org/plugins/css-minimizer-webpack-plugin/
* es6 shim uniquely named
This commit is contained in:
Matt Godbolt
2021-12-21 10:20:15 -06:00
committed by GitHub
parent 0f7e115a9c
commit 7c20613c5d
5 changed files with 1831 additions and 5213 deletions

View File

@@ -70,7 +70,7 @@ clean: ## Cleans up everything
# Don't use $(NODE) ./node_modules/<path to node_module> as sometimes that's not actually a node script. Instead, rely
# on PATH ensuring "node" is found in our distribution first.
run: export NODE_ENV=production
run: export WEBPACK_ARGS="-p"
run: export WEBPACK_ARGS="--node-env=production"
run: prereqs webpack ## Runs the site normally
./node_modules/.bin/supervisor -w app.js,lib,etc/config,static/tsconfig.json -e 'js|ts|node|properties|yaml' --exec $(NODE) $(NODE_ARGS) -- -r esm ./app.js $(EXTRA_ARGS)
@@ -84,7 +84,7 @@ debug: prereqs ## Runs the site as a developer with full debugging; including li
HASH := $(shell git rev-parse HEAD)
dist: export NODE_ENV=production
dist: export WEBPACK_ARGS=-p
dist: export WEBPACK_ARGS="--node-env=production"
dist: prereqs webpack ## Creates a distribution
echo $(HASH) > out/dist/git_hash