fix content build
This commit is contained in:
parent
63a014e477
commit
3b79364d20
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
.parcel-app/
|
||||
ec*.exe
|
||||
public/
|
||||
content/
|
||||
|
@ -1,18 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
files=(
|
||||
"pages/"
|
||||
"manifest.webmanifest"
|
||||
"index.html"
|
||||
"*.css"
|
||||
"*.png"
|
||||
)
|
||||
|
||||
echo -n "Remove all build files in 'public'... "
|
||||
|
||||
for file in "${files[@]}"
|
||||
do
|
||||
rm -rf ./public/$file &> /dev/null
|
||||
done
|
||||
|
||||
echo "Complete!"
|
@ -4,14 +4,14 @@
|
||||
"version": "1.0.0",
|
||||
"description": "ololo",
|
||||
"scripts": {
|
||||
"serve": "npx parcel serve --dist-dir .parcel-app app/index.html pages/*.html",
|
||||
"serve-https": "npx parcel serve --https --dist-dir public app/index.html pages/*.html",
|
||||
"serve": "npx parcel serve --dist-dir .parcel-app app/index.html pages/*.html content/*/*/*",
|
||||
"serve-https": "npx parcel serve --https --dist-dir public app/index.html pages/*.html content/*/*/*",
|
||||
"build": "npm run clean; npm run build-pages; npm run build-app; npm run git-hash",
|
||||
"build-app": "npx parcel build --no-cache --no-source-maps --no-optimize --no-content-hash --dist-dir public app/index.html",
|
||||
"build-pages": "npx parcel build --no-cache --no-source-maps --no-optimize --no-content-hash --dist-dir public/pages pages/*.html",
|
||||
"build-pages": "npx parcel build --no-cache --no-source-maps --no-optimize --no-content-hash --dist-dir public/ content/*/*/* pages/*.html",
|
||||
"prettier": "npx prettier --write .",
|
||||
"git-hash": "./update_commit.sh",
|
||||
"clean": "./clean_public.sh",
|
||||
"clean": "rm -rf ./public/ &> /dev/null",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Alexander Popov <iiiypuk@fastmail.fm>",
|
||||
|
@ -14,10 +14,10 @@
|
||||
<span class="text-nowrap">«Вторжение огромных тварей»</span>
|
||||
</h3>
|
||||
|
||||
<div class="d-none">
|
||||
<div>
|
||||
<img
|
||||
class="img-fluid shadow rounded m-3"
|
||||
src="//content/images/2023/resident_evil_revelations_2_wallpaper_by_brendabirkin.jpg" />
|
||||
src="/content/images/2023/resident_evil_revelations_2_wallpaper_by_brendabirkin.jpg" />
|
||||
<p class="text-center text-muted">
|
||||
Изображение:
|
||||
<a
|
||||
|
Loading…
Reference in New Issue
Block a user