1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 09:38:27 -04:00

vendor twemojis before building site and cache them (and ./public)

This commit is contained in:
Jake Jarvis 2020-06-07 12:46:06 -04:00
parent 9b67b1be01
commit b89920cb40
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
2 changed files with 4 additions and 3 deletions

View File

@ -44,7 +44,7 @@
[[plugins]]
package = "./plugins/netlify-plugin-cache"
[plugins.inputs]
paths = ["resources", "_vendor"]
paths = ["resources", "public", "_vendor"]
[[plugins]]
package = "netlify-plugin-debug-cache"

View File

@ -15,10 +15,11 @@
},
"scripts": {
"clean": "rimraf public/ resources/ builds/ && hugo mod clean",
"build": "run-s hugo minify",
"build:preview": "run-s hugo:dev",
"build": "run-s hugo:mods hugo minify",
"build:preview": "run-s hugo:mods hugo:dev",
"hugo": "hugo --gc --cleanDestinationDir --verbose",
"hugo:dev": "hugo --environment development --baseURL ${DEPLOY_PRIME_URL:-/} --buildDrafts --buildFuture --gc --cleanDestinationDir --verbose",
"hugo:mods": "hugo mod vendor",
"start": "hugo server --disableFastRender --buildDrafts --buildFuture --port 1337 --bind 0.0.0.0 --verbose",
"start:docker": "docker run --rm -v $(pwd):/src -p 1337:1337 $(docker build --no-cache -q .)",
"minify": "run-s minify:**",