summaryrefslogtreecommitdiffstats
path: root/front
diff options
context:
space:
mode:
authorsyn <isaqtm@gmail.com>2021-03-08 21:23:24 +0300
committersyn <isaqtm@gmail.com>2021-03-08 21:23:24 +0300
commit2f38658f5d86a199a1066341883aa69bd6e49828 (patch)
tree6493c73076c2fdef371d40d285197499505db604 /front
parent82b3f4c5e419bd6fdaa0dae14c92586b51aee8d7 (diff)
downloadupnet-2f38658f5d86a199a1066341883aa69bd6e49828.tar.gz
Improve build process
Diffstat (limited to 'front')
-rw-r--r--front/index.html6
-rw-r--r--front/package.json2
-rw-r--r--front/style.css8
3 files changed, 8 insertions, 8 deletions
diff --git a/front/index.html b/front/index.html
index 52f1d2e..46c4627 100644
--- a/front/index.html
+++ b/front/index.html
@@ -5,12 +5,12 @@
<title> пиздец </title>
<meta name="theme-color" content="#141D20">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="stylesheet" href="/css/style.css">
- <link rel="stylesheet" href="/css/twemoji-awesome.css">
+ <link rel="stylesheet" href="/style.css">
+ <link rel="stylesheet" href="/twemoji-awesome.css">
</head>
<body>
<div id="root">
</div>
- <script defer src="/js/out.js"></script>
+ <script defer src="/index.js"></script>
</body>
</html> \ No newline at end of file
diff --git a/front/package.json b/front/package.json
index 941b9c4..0a96871 100644
--- a/front/package.json
+++ b/front/package.json
@@ -14,7 +14,7 @@
"scripts": {
"test": "echo \"Error: testing is disallowed\" && exit 1",
"build": "esbuild index.jsx --sourcemap=inline --bundle --outdir=dist",
- "release": "esbuild index.jsx --bundle --minify --outdir=dist",
+ "release": "esbuild index.jsx style.css twemoji-awesome.css --loader:.ttf=file --bundle --minify --outdir=dist && cp index.html dist/",
"watch": "esbuild index.jsx --sourcemap=inline --bundle --outdir=dist --watch"
},
"author": "syn",
diff --git a/front/style.css b/front/style.css
index 3ef2ea1..c944736 100644
--- a/front/style.css
+++ b/front/style.css
@@ -1,20 +1,20 @@
@font-face {
font-family: 'Anka/Coder';
- src: url("/AnkaCoderCondensed/AnkaCoder-C87-r.ttf") format('truetype');
+ src: url("./AnkaCoderCondensed/AnkaCoder-C87-r.ttf") format('truetype');
}
@font-face {
font-family: 'Anka/Coder';
- src: url("/AnkaCoderCondensed/AnkaCoder-C87-i.ttf") format('truetype');
+ src: url("./AnkaCoderCondensed/AnkaCoder-C87-i.ttf") format('truetype');
font-style: italic;
}
@font-face {
font-family: 'Anka/Coder';
- src: url("/AnkaCoderCondensed/AnkaCoder-C87-b.ttf") format('truetype');
+ src: url("./AnkaCoderCondensed/AnkaCoder-C87-b.ttf") format('truetype');
font-weight: bold;
}
@font-face {
font-family: 'Anka/Coder';
- src: url("/AnkaCoderCondensed/AnkaCoder-C87-b.ttf") format('truetype');
+ src: url("./AnkaCoderCondensed/AnkaCoder-C87-b.ttf") format('truetype');
font-style: italic;
font-weight: bold;
}