Revert the full file minification on build

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-08-29 00:04:08 +03:00
parent 88d07a2108
commit 0c5d750a31
4 changed files with 2 additions and 2485 deletions

View file

@ -1,9 +1,6 @@
build: build:
npm run build npm run build
netlifymin:
npm run netlify-min
clean: clean:
[ -z "${CI}" ] || rm -rfv requirements.txt \ [ -z "${CI}" ] || rm -rfv requirements.txt \
README.md \ README.md \
@ -12,6 +9,6 @@ clean:
.vscode \ .vscode \
.github \ .github \
netlify: build netlifymin clean netlify: build clean
.PHONY: build clean netlify .PHONY: build clean netlify

2467
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -4,8 +4,7 @@
"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",
@ -31,7 +30,6 @@
"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"
} }
} }

View file

@ -1,11 +0,0 @@
#!/usr/bin/env sh
set -e
main() {
minify-all -s . -d min --skipFileExtensions=.png --logLevel=fatal -p 10
cp -r min/* .
rm -r min
}
main "$@"