Skip to content

Commit

Permalink
Pin npm autoprefixer package for site generation (#1818)
Browse files Browse the repository at this point in the history
The 10.0.0 release of autoprefixer broke site generation, so pinning the
version to a 9.x.x release.

This will unclog CI as well.
  • Loading branch information
markmandel authored Sep 15, 2020
1 parent ecfb624 commit 25ed44e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/includes/website.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ site-static: ensure-build-image
# for some reason, this only work locally
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) \
bash -c "npm list postcss-cli || npm install postcss-cli"
# autoprefixer 10.0.0 broke things, so pinning the version
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) \
bash -c "npm list autoprefixer || npm install autoprefixer"
bash -c "npm list autoprefixer || npm install autoprefixer@9.8.6"
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) bash -c \
"$(ENV) hugo --config=config.toml $(ARGS)"

Expand Down

0 comments on commit 25ed44e

Please sign in to comment.