Skip to content

Commit 9ca8625

Browse files
committed
Must admit, this is hard
1 parent f14f02f commit 9ca8625

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>DEV packer</title>
6+
<title>ChatStat Creator</title>
77
</head>
88
<body>
99
<main id="app"></main>

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"scripts": {
77
"dev": "vite",
88
"test": "node --test ./src/parser/binformat/tests.js",
9-
"build": "npm-run-all test buildcss:* build:*",
9+
"build": "npm-run-all test buildcss:* build:* packcreator",
1010
"buildcss:sass": "sass --no-source-map --style expanded --no-error-css --load-path=node_modules/@picocss/pico/scss/ ./css/pico.custom.scss ./css/pico.custom.css",
1111
"buildcss:post": "postcss --config css --replace css/*.css !css/*.min.css",
1212
"buildcss:min": "cleancss -O1 --with-rebase --batch --batch-suffix .min css/*.css !css/*.min.css",
1313
"build:worker": "vite build --mode worker",
1414
"build:chatstat": "vite build --mode chatstat",
1515
"build:creator": "vite build --mode chatstatcreator",
16-
"build:pack": "node scripts/packapp.js",
16+
"packcreator": "node scripts/packapp.js",
1717
"genstats": "npm run stats:parse",
1818
"genstats:dev": "npm-run-all stats:parse stats:format",
1919
"stats:parse": "node ./src/parser/cli.js ./stats/result.json ./stats/stats",

src/packer/getworker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export async function getWorker() {
99
// eslint-disable-next-line no-undef
1010
chatstatContent = $fs.str("chatstat.iife.js");
1111
} catch {
12-
workerURL = "/dist/chatstatworker/chatstat.worker.iife.js";
13-
chatstatURL = "/dist/chatstat/chatstat.iife.js";
12+
workerURL = "dist/chatstatworker/chatstat.worker.iife.js";
13+
chatstatURL = "dist/chatstat/chatstat.iife.js";
1414
}
1515

1616
const myWebWorker = new Worker(workerURL);

0 commit comments

Comments
 (0)