mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
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:
4
Makefile
4
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user