diff --git a/package-lock.json b/package-lock.json index 8af4cda..35540f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "@11ty/eleventy-plugin-inclusive-language": "^1.0.3", "@11ty/eleventy-plugin-rss": "^1.2.0", "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0", + "cross-env": "^7.0.3", "tailwindcss": "^3.0.23" }, "devDependencies": { @@ -2167,6 +2168,23 @@ "@babel/types": "^7.6.1" } }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", diff --git a/package.json b/package.json index 3a65faf..4214848 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "scripts": { "clean": "rimraf dist", "screenshots": "node ./config/scripts/generate-screenshots.mjs", - "dev:11ty": "eleventy --serve --watch", - "build:11ty": "eleventy", + "dev:11ty": "cross-env ELEVENTY_ENV=development eleventy --serve --watch", + "build:11ty": "cross-env ELEVENTY_ENV=production eleventy", "start": "run-p dev:*", "build": "run-s clean build:*" }, @@ -28,6 +28,7 @@ "@11ty/eleventy-plugin-inclusive-language": "^1.0.3", "@11ty/eleventy-plugin-rss": "^1.2.0", "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0", + "cross-env": "^7.0.3", "tailwindcss": "^3.0.23" }, "devDependencies": {