Добавлено игнорирование сборки статических файлов

This commit is contained in:
Alexander Popov 2023-08-19 04:09:45 +03:00
parent 23a693a805
commit dad4d61453
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
17 changed files with 78 additions and 42 deletions

2
.gitignore vendored
View File

@ -1,7 +1,7 @@
.parcel-cache/
content/
app/bootstrap*
static/*/bootstrap*
# new env
dev/

4
.parcelrc Normal file
View File

@ -0,0 +1,4 @@
{
"extends": "@parcel/config-default",
"resolvers": ["parcel-resolver-ignore", "..."]
}

View File

@ -5,16 +5,16 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>a2s</title>
<meta name="description" content="" />
<link rel="manifest" href="manifest.json" />
<link rel="stylesheet" type="text/css" href="bootstrap-v5.3.1.min.css" />
<link rel="stylesheet" type="text/css" href="/css/bootstrap-v5.3.1.min.css" />
<link rel="stylesheet" type="text/css" href="/js/bootstrap-v5.3.1.min.js" />
<style type="text/css">
@import url('./styles.css');
</style>
<script type="module">
import './app.js';
</script>
<link rel="author" href="humans.txt" />
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="author" href="/humans.txt" />
<link rel="icon" type="image/png" href="/favicon.png" />
</head>
<body class="d-flex h-100 text-bg-dark">
<div class="cover-container d-flex w-100 h-100 mx-auto flex-column">

View File

@ -1,34 +0,0 @@
{
"name": "a2s",
"icons": [
{
"src": "/icons/72.png",
"sizes": "72x72",
"type": "image/png",
"density": "1.5"
},
{
"src": "/icons/96.png",
"sizes": "96x96",
"type": "image/png",
"density": "2.0"
},
{
"src": "/icons/144.png",
"sizes": "144x144",
"type": "image/png",
"density": "3.0"
},
{
"src": "/icons/192.png",
"sizes": "192x192",
"type": "image/png",
"density": "4.0"
},
{
"src": "/icons/512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}

28
package-lock.json generated
View File

@ -1,17 +1,19 @@
{
"name": "a2s",
"version": "1.0.0",
"version": "0.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "a2s",
"version": "1.0.0",
"version": "0.0.0",
"license": "WTFPL",
"devDependencies": {
"@parcel/packager-raw-url": "^2.9.3",
"@parcel/transformer-posthtml": "^2.9.3",
"@parcel/transformer-webmanifest": "^2.9.3",
"parcel": "^2.9.3",
"parcel-resolver-ignore": "^2.1.5",
"posthtml-include": "^1.7.4",
"prettier": "3.0.1"
}
@ -3067,6 +3069,21 @@
"url": "https://opencollective.com/parcel"
}
},
"node_modules/parcel-resolver-ignore": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/parcel-resolver-ignore/-/parcel-resolver-ignore-2.1.5.tgz",
"integrity": "sha512-/2zgQw3J/2YA7L6JXg4XKBWT/SXDZx+PfweWcCsllchNVwFvK7jDJhG6h+puy+e15Rm9A/ubuuHYwANQHVXp2A==",
"dev": true,
"engines": {
"parcel": ">=2.0.0"
},
"funding": {
"url": "https://ko-fi.com/vladimirmikulic"
},
"peerDependencies": {
"parcel": ">=2.0.0"
}
},
"node_modules/parent-module": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
@ -5383,6 +5400,13 @@
"get-port": "^4.2.0"
}
},
"parcel-resolver-ignore": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/parcel-resolver-ignore/-/parcel-resolver-ignore-2.1.5.tgz",
"integrity": "sha512-/2zgQw3J/2YA7L6JXg4XKBWT/SXDZx+PfweWcCsllchNVwFvK7jDJhG6h+puy+e15Rm9A/ubuuHYwANQHVXp2A==",
"dev": true,
"requires": {}
},
"parent-module": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",

View File

@ -16,9 +16,17 @@
"license": "WTFPL",
"devDependencies": {
"@parcel/packager-raw-url": "^2.9.3",
"@parcel/transformer-posthtml": "^2.9.3",
"@parcel/transformer-webmanifest": "^2.9.3",
"parcel": "^2.9.3",
"parcel-resolver-ignore": "^2.1.5",
"posthtml-include": "^1.7.4",
"prettier": "3.0.1"
}
},
"parcelIgnore": [
"bootstrap-v5.3.1.min.css",
"bootstrap-v5.3.1.min.js",
"favicon.png",
"humans.txt"
]
}

View File

Before

Width:  |  Height:  |  Size: 357 B

After

Width:  |  Height:  |  Size: 357 B

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 357 B

After

Width:  |  Height:  |  Size: 357 B

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 610 B

After

Width:  |  Height:  |  Size: 610 B

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,34 @@
{
"name": "a2s",
"icons": [
{
"src": "/icons/72.png",
"sizes": "72x72",
"type": "image/png",
"density": "1.5"
},
{
"src": "/icons/96.png",
"sizes": "96x96",
"type": "image/png",
"density": "2.0"
},
{
"src": "/icons/144.png",
"sizes": "144x144",
"type": "image/png",
"density": "3.0"
},
{
"src": "/icons/192.png",
"sizes": "192x192",
"type": "image/png",
"density": "4.0"
},
{
"src": "/icons/512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}