Sha256: 73ddc3f6b4542cc512ae6f78902a1a9bfbf5e2c2e7bb28791a268140570862db

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

#!/usr/bin/env bash
# Taken from https://docs.netlify.com/configure-builds/file-based-configuration/#inject-environment-variable-values

echo "Updating netlify.toml with references to our built files"

CSS_PATH=`find output/_bridgetown/static/*.css -type f | sed -e 's,output\/,/,g'`
JS_PATH=`find output/_bridgetown/static/*.js -type f | sed -e 's,output\/,/,g'`

echo "CSS Path: ${CSS_PATH}"
echo "JS Path: ${JS_PATH}"

sed -i s,CSS_PATH,${CSS_PATH},g netlify.toml
sed -i s,JS_PATH,${JS_PATH},g netlify.toml

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bridgetown-core-1.3.2 lib/bridgetown-core/configurations/netlify/netlify.sh