mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 17:49:24 +01:00
Added minification for all files on build
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
6d7395200f
commit
bb449b60bb
5 changed files with 2496 additions and 7 deletions
1
Makefile
1
Makefile
|
@ -10,5 +10,6 @@ clean:
|
||||||
.github \
|
.github \
|
||||||
|
|
||||||
netlify: build clean
|
netlify: build clean
|
||||||
|
npm run netlify-min
|
||||||
|
|
||||||
.PHONY: build clean netlify
|
.PHONY: build clean netlify
|
||||||
|
|
|
@ -6,5 +6,13 @@
|
||||||
"legacy.blog.ari-web.xyz": 31.8,
|
"legacy.blog.ari-web.xyz": 31.8,
|
||||||
"www.ari-web.xyz": 29.9
|
"www.ari-web.xyz": 29.9
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"2022-08-28": {
|
||||||
|
"total": 30.0,
|
||||||
|
"top": {
|
||||||
|
"legacy.blog.ari-web.xyz": 9.2,
|
||||||
|
"www.ari-web.xyz": 8.6,
|
||||||
|
"blog.ari-web.xyz": 7.3
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2479
package-lock.json
generated
2479
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -4,7 +4,8 @@
|
||||||
"description": "My website's source code",
|
"description": "My website's source code",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "live-server --no-browser",
|
"serve": "live-server --no-browser",
|
||||||
"build": "./scripts/build.sh"
|
"build": "./scripts/build.sh",
|
||||||
|
"netlify-min": "./scripts/netlify_prod.sh"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -30,6 +31,7 @@
|
||||||
"autoprefixer-cli": "^1.0.0",
|
"autoprefixer-cli": "^1.0.0",
|
||||||
"eslint": "^8.14.0",
|
"eslint": "^8.14.0",
|
||||||
"live-server": "^1.2.2",
|
"live-server": "^1.2.2",
|
||||||
|
"minify-all-cli": "^1.0.13",
|
||||||
"node-sass": "^7.0.1"
|
"node-sass": "^7.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
11
scripts/netlify_prod.sh
Executable file
11
scripts/netlify_prod.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
main() {
|
||||||
|
minify-all-cli -s . -d min --skipFileExtensions=.png --logLevel=warn
|
||||||
|
cp -r min/* .
|
||||||
|
rm -r min
|
||||||
|
}
|
||||||
|
|
||||||
|
main "$@"
|
Loading…
Add table
Reference in a new issue