We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9be58d commit 0a2cf50Copy full SHA for 0a2cf50
.eleventy.js
@@ -13,9 +13,8 @@ module.exports = function (config) {
13
return fonts;
14
});
15
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') {
+ // is production build (netlify) :: minify html
+ if (process.env.PROD === 'true') {
19
// pulled from Eleventy docs
20
// https://www.11ty.dev/docs/config/#transforms-example-minify-html-output
21
config.addTransform('htmlmin', function (content, outputPath) {
0 commit comments