Skip to content

Commit 0a2cf50

Browse files
committed
fixed the env variable to listen for (the one set in netlify deploy script)
1 parent b9be58d commit 0a2cf50

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.eleventy.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ module.exports = function (config) {
1313
return fonts;
1414
});
1515

16-
// environment is production build :: minify html
17-
// https://www.11ty.dev/docs/data-js/#example-exposing-environment-variables
18-
if (process.env.ELEVENTY_ENV === 'production') {
16+
// is production build (netlify) :: minify html
17+
if (process.env.PROD === 'true') {
1918
// pulled from Eleventy docs
2019
// https://www.11ty.dev/docs/config/#transforms-example-minify-html-output
2120
config.addTransform('htmlmin', function (content, outputPath) {

0 commit comments

Comments
 (0)