Add tool to auto-convert images as webp when running the prod script
This commit is contained in:
@@ -8,11 +8,11 @@
|
||||
"@11ty/eleventy": "^3.0.0",
|
||||
"@11ty/eleventy-plugin-rss": "^2.0.2",
|
||||
"@11ty/eleventy-plugin-syntaxhighlight": "^2.0.3",
|
||||
"jsdom": "^24.0.0",
|
||||
"bootstrap": "^5.1.3",
|
||||
"concurrently": "^7.0.0",
|
||||
"html-minifier-terser": "^7.2.0",
|
||||
"image-size": "^0.8.3",
|
||||
"jsdom": "^24.0.0",
|
||||
"json-to-scss": "^1.3.1",
|
||||
"leaflet": "^1.7.1",
|
||||
"sass": "^1.26.3",
|
||||
@@ -26,6 +26,7 @@
|
||||
"copyfiles": "^2.4.1",
|
||||
"cross-env": "^5.2.1",
|
||||
"ftp-deploy": "^2.3.7",
|
||||
"go-webp": "^1.3.1",
|
||||
"make-dir-cli": "^3.0.0",
|
||||
"prettier": "^1.19.1",
|
||||
"rimraf": "^3.0.2",
|
||||
@@ -44,9 +45,10 @@
|
||||
"vendor:css": "copyfiles node_modules/leaflet/dist/leaflet.css node_modules/bootstrap/dist/css/bootstrap.min.css -f dist/vendor/css",
|
||||
"vendor:js": "copyfiles node_modules/leaflet/dist/leaflet.js node_modules/bootstrap/dist/js/bootstrap.min.js -f dist/vendor/js",
|
||||
"vendor": "npm run clean && npm run vendor:css && npm run vendor:js",
|
||||
"webp": "go-webp excludeFolders=\"src/fonts,members-data,src/images/profiles\" excludeFiles=\"images/*.svg,images/astrolabe/favicon.png\"",
|
||||
"start": "concurrently \"npm run vendor\" \"npm run sass:process -- --watch\" \"npm run serve\"",
|
||||
"serve": "cross-env ELEVENTY_ENV=development npx eleventy --serve",
|
||||
"prod": "cross-env ELEVENTY_ENV=prod npm run vendor && npm run sass:process && npx eleventy",
|
||||
"prod": "cross-env ELEVENTY_ENV=prod npm run vendor && npm run webp && npm run sass:process && npx eleventy",
|
||||
"deploy-preprod": "npm run prod && node deploy-preprod",
|
||||
"deploy-prod": "npm run prod && node deploy-prod"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user