mirror of
https://codeberg.org/timelimit/timelimit-server-ui.git
synced 2026-06-05 17:36:50 +02:00
Update parcel
This commit is contained in:
+1
-1
@@ -1,3 +1,3 @@
|
||||
node_modules
|
||||
dist
|
||||
.cache
|
||||
.parcel-cache
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import { readFileSync, writeFileSync } from 'fs'
|
||||
|
||||
const htmlFilePath = new URL('dist/index.html', import.meta.url)
|
||||
|
||||
writeFileSync(
|
||||
htmlFilePath,
|
||||
readFileSync(htmlFilePath)
|
||||
.toString('utf8')
|
||||
.replace(' type="module"', '')
|
||||
)
|
||||
Generated
+4912
-6125
File diff suppressed because it is too large
Load Diff
+2
-4
@@ -1,14 +1,12 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"parcel-bundler": "^1.12.4"
|
||||
},
|
||||
"scripts": {
|
||||
"develop": "parcel src/index.html",
|
||||
"lint": "tslint --project .",
|
||||
"lint:fix": "tslint --project . --fix",
|
||||
"build": "tslint --project . && rimraf dist && parcel build src/index.html --no-source-maps --no-minify --no-cache --public-url ."
|
||||
"build": "tslint --project . && rimraf dist && parcel build src/index.html --no-source-maps --no-optimize --no-cache --public-url . && node finish-build.mjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"parcel": "^2.6.2",
|
||||
"rimraf": "^3.0.1",
|
||||
"tslint": "^6.0.0",
|
||||
"tslint-config-standard": "^9.0.0",
|
||||
|
||||
+2
-2
@@ -1,13 +1,13 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>TimeLimit Admin</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="stylesheet" href="./style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div id="app"></div>
|
||||
</div>
|
||||
|
||||
<script src="./index.ts"></script>
|
||||
<script src="./index.ts" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user