Compare commits
20 Commits
86982c9b96
...
ejs
Author | SHA1 | Date | |
---|---|---|---|
d26a88628b | |||
d499e013f5 | |||
b64ccd6975 | |||
c994698e2d | |||
fd1675f57a | |||
3865a79dbc | |||
f228d86e0b | |||
596a21f49d | |||
e09891482e | |||
f7e678190d | |||
22df34ed43 | |||
2ea415a20e | |||
d59ea8d8a7 | |||
4f3df58ff4 | |||
db31f20d24 | |||
9de5ddcfbf | |||
474345a204 | |||
d1fc53206c | |||
20d7bd09a3 | |||
3640f022f6 |
@ -9,9 +9,10 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"devDependencies": {
|
||||
"sass": "^1.85.0",
|
||||
"typescript": "^5.7.3",
|
||||
"vite": "^6.1.1",
|
||||
"vite-plugin-html": "^3.2.2"
|
||||
"sass": "^1.85.1",
|
||||
"typescript": "^5.8.2",
|
||||
"vite": "^6.2.0",
|
||||
"vite-plugin-html": "^3.2.2",
|
||||
"vite-plugin-ejs": "^1.7.0"
|
||||
}
|
||||
}
|
11
src/html/footer.html
Normal file
11
src/html/footer.html
Normal file
@ -0,0 +1,11 @@
|
||||
<p class="raw-text" id="time">00:00:00</p>
|
||||
<section>
|
||||
<p class="raw-text" id="column-line">0, 0</p>
|
||||
<button id="toggle-monospace">Monospace</button>
|
||||
<button id="toggle-term-mode">UNIX</button>
|
||||
</section>
|
||||
<noscript>
|
||||
<style>
|
||||
#toggle-monospace, .raw-text { display: none }
|
||||
</style>
|
||||
</noscript>
|
14
src/html/header.html
Normal file
14
src/html/header.html
Normal file
@ -0,0 +1,14 @@
|
||||
<button class="header-left">
|
||||
<a href="https://rhpidfyre.io/" class="header-button">[rhpidfyre.io]</a>
|
||||
</button>
|
||||
<section class="header-right">
|
||||
<button>
|
||||
<a href="https://git.rhpidfyre.io/" class="header-button">GIT</a>
|
||||
</button>
|
||||
<button>
|
||||
<a href="https://files.rhpidfyre.io/" class="header-button">CLOUD</a>
|
||||
</button>
|
||||
<button>
|
||||
<a href="https://gsm.rhpidfyre.io/" class="header-button">GSM</a>
|
||||
</button>
|
||||
</section>
|
17
src/html/motd.html
Normal file
17
src/html/motd.html
Normal file
@ -0,0 +1,17 @@
|
||||
<p>Welcome to rhpidfyre.io!</p>
|
||||
<div class="return"></div>
|
||||
<p>This is a personal website by rhpidfyre / Brandon.</p>
|
||||
<p>You can find my services here or learn about me.</p>
|
||||
<div class="return"></div>
|
||||
<p>You can also contribute or view the source code of my website via the links:</p>
|
||||
<p><<a href="https://git.rhpidfyre.io/rhpidfyre/rhpidfyre.io" target="_blank">https://git.rhpidfyre.io/rhpidfyre/rhpidfyre.io</a>>.</p>
|
||||
<p><<a href="https://github.com/unixtensor/rhpidfyre.io" target="_blank">https://github.com/unixtensor/rhpidfyre.io</a>>.</p>
|
||||
<div class="return"></div>
|
||||
<p>You can get started with the command: <span class="bold">help</span></p>
|
||||
<div class="return"></div>
|
||||
<noscript>
|
||||
<p><span class="red">=================================================</span></p>
|
||||
<p><span class="red">JavaScript is disabled, functionality will be limited. :(</span></p>
|
||||
<p><span class="red">But, you will not be limited at exploring my services which you can find by navigating towards the top-right.</span></p>
|
||||
<p><span class="red">=================================================</span></p>
|
||||
</noscript>
|
22
src/index.ejs
Normal file
22
src/index.ejs
Normal file
@ -0,0 +1,22 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width"/>
|
||||
<link rel="icon" type="image/png" href="/logo.png"/>
|
||||
<link rel="stylesheet" href="./scss/global.scss"/>
|
||||
<title>rhpidfyre.io</title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<%- inlineHtml("header") %>
|
||||
</header>
|
||||
<main>
|
||||
<%- inlineHtml("motd") %>
|
||||
</main>
|
||||
<footer>
|
||||
<%- inlineHtml("footer") %>
|
||||
</footer>
|
||||
<script type="module" src="./rt/emulator/terminal.ts"></script>
|
||||
</body>
|
||||
</html>
|
@ -1,61 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width"/>
|
||||
<link rel="icon" type="image/png" href="/logo.png"/>
|
||||
<link rel="stylesheet" href="./scss/global.scss"/>
|
||||
<title>rhpidfyre.io</title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<button class="header-left">
|
||||
<a href="https://rhpidfyre.io/" class="header-button">[rhpidfyre.io]</a>
|
||||
</button>
|
||||
<section class="header-right">
|
||||
<button>
|
||||
<a href="https://git.rhpidfyre.io/" class="header-button">GIT</a>
|
||||
</button>
|
||||
<button>
|
||||
<a href="https://files.rhpidfyre.io/" class="header-button">CLOUD</a>
|
||||
</button>
|
||||
<button>
|
||||
<a href="https://gsm.rhpidfyre.io/" class="header-button">GSM</a>
|
||||
</button>
|
||||
</section>
|
||||
</header>
|
||||
<main>
|
||||
<p>Welcome to rhpidfyre.io!</p>
|
||||
<div class="return"></div>
|
||||
<p>This is a personal website by rhpidfyre / Brandon.</p>
|
||||
<p>You can find my services here or learn about me.</p>
|
||||
<div class="return"></div>
|
||||
<p>You can also contribute or view the source code of my website via the links:</p>
|
||||
<p><<a href="https://git.rhpidfyre.io/rhpidfyre/rhpidfyre.io" target="_blank">https://git.rhpidfyre.io/rhpidfyre/rhpidfyre.io</a>>.</p>
|
||||
<p><<a href="https://github.com/unixtensor/rhpidfyre.io" target="_blank">https://github.com/unixtensor/rhpidfyre.io</a>>.</p>
|
||||
<div class="return"></div>
|
||||
<p>You can get started with the command: <span class="bold">help</span></p>
|
||||
<div class="return"></div>
|
||||
<noscript>
|
||||
<p><span class="red">=================================================</span></p>
|
||||
<p><span class="red">JavaScript is disabled, functionality will be limited. :(</span></p>
|
||||
<p><span class="red">But, you will not be limited at exploring my services which you can find by navigating towards the top-right.</span></p>
|
||||
<p><span class="red">=================================================</span></p>
|
||||
</noscript>
|
||||
</main>
|
||||
<footer>
|
||||
<p class="raw-text" id="time">00:00:00</p>
|
||||
<section>
|
||||
<p class="raw-text" id="column-line">0, 0</p>
|
||||
<button id="toggle-monospace">Monospace</button>
|
||||
<button id="toggle-term-mode">UNIX</button>
|
||||
</section>
|
||||
<noscript>
|
||||
<style>
|
||||
#toggle-monospace, .raw-text { display: none }
|
||||
</style>
|
||||
</noscript>
|
||||
</footer>
|
||||
<script type="module" src="./rt/terminal.ts"></script>
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 5.7 KiB |
@ -1,5 +1,5 @@
|
||||
import { cyan, green } from "../shell/color"
|
||||
import { get_working_dir_name } from "../shell/fs/fn"
|
||||
import { get_working_dir_name } from "../rfwfs/library"
|
||||
|
||||
import create from "./create"
|
||||
|
||||
|
@ -26,6 +26,12 @@ function stdout_grid<T extends HTMLElement>(left: string[], right: string[], hea
|
||||
return wrap_indicator
|
||||
}
|
||||
|
||||
function stdout_horizontal_elements<T extends HTMLElement>(elements: T[]) {
|
||||
const h_elements_out = horizontal()
|
||||
h_elements_out.append(...elements)
|
||||
return h_elements_out
|
||||
}
|
||||
|
||||
function stdout_horizontal(strs: string[]) {
|
||||
const p = create("p")
|
||||
strs.forEach((str, i) => {
|
||||
@ -48,7 +54,8 @@ export default function stdout(str: string) {
|
||||
}
|
||||
|
||||
export {
|
||||
stdout_grid,
|
||||
stdout_horizontal_elements,
|
||||
stdout_horizontal,
|
||||
stdout_grid,
|
||||
stdout_bold
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
import run from "./shell/command/command"
|
||||
import history from "./shell/history"
|
||||
import run from "../shell/command/command"
|
||||
import history from "../shell/history"
|
||||
|
||||
type InputClosure = (key_event: KeyboardEvent) => void
|
||||
interface EnterArgs {
|
@ -1,5 +1,5 @@
|
||||
import history from "./shell/history"
|
||||
import prompt from "./elements/prompt"
|
||||
import history from "../shell/history"
|
||||
import prompt from "../elements/prompt"
|
||||
import keys from "./keys"
|
||||
|
||||
const term_win_unsafe = document.querySelector("main")
|
46
src/rt/rfwfs/collection.ts
Normal file
46
src/rt/rfwfs/collection.ts
Normal file
@ -0,0 +1,46 @@
|
||||
import { type Entry } from "./main"
|
||||
|
||||
import entry_search from "./index"
|
||||
|
||||
type Files<T> = Entry<T>[]
|
||||
|
||||
interface EntryCollectionManipulate {
|
||||
pop: <T extends Entry<T>>(file_name: string) => Entry<T> | undefined,
|
||||
get: <T extends Entry<T>>(file_name: string) => Entry<T> | undefined
|
||||
push: <T extends Entry<T>>(entry: Entry<T>) => boolean,
|
||||
sort: () => void,
|
||||
}
|
||||
interface EntryCollection<T> extends EntryCollectionManipulate {
|
||||
readonly inner: Files<T>
|
||||
}
|
||||
|
||||
function entry_trait<T extends Entry<T>>() {
|
||||
const trait = {} as EntryCollection<T>
|
||||
trait.sort = function() {
|
||||
this.inner.sort((a,z) => a.name.localeCompare(z.name))
|
||||
}
|
||||
trait.push = function(entry) {
|
||||
const no_duplicates = entry_search(this.inner, entry.name)
|
||||
if (!no_duplicates) {
|
||||
this.push(entry)
|
||||
this.sort()
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
trait.pop = function(file_name) {
|
||||
const file_search = entry_search(this.inner, file_name)
|
||||
if (file_search) {
|
||||
this.inner.splice(file_search.index, 1)
|
||||
return file_search.result
|
||||
}
|
||||
return
|
||||
}
|
||||
return trait
|
||||
}
|
||||
|
||||
export {
|
||||
entry_trait,
|
||||
type EntryCollection,
|
||||
type Files,
|
||||
}
|
28
src/rt/rfwfs/index.ts
Normal file
28
src/rt/rfwfs/index.ts
Normal file
@ -0,0 +1,28 @@
|
||||
import { type Entry } from "./main"
|
||||
import { type Files } from "./collection"
|
||||
|
||||
interface SearchResult<T> {
|
||||
readonly result: T,
|
||||
readonly index: number
|
||||
}
|
||||
function wrap_result<T>(result: T, index: number): SearchResult<T> {
|
||||
return { result: result, index: index }
|
||||
}
|
||||
|
||||
export default function entry_search<T>(cloned_file_collection: Files<T>, file_name: string): SearchResult<Entry<T>> | undefined {
|
||||
let start = 0
|
||||
let end = cloned_file_collection.length-1
|
||||
while (start<=end) {
|
||||
const median = (start+end)>>1
|
||||
const median_name = cloned_file_collection[median].name
|
||||
|
||||
if (median_name == file_name) { //left == right && (T == U) is not necessary
|
||||
return wrap_result(cloned_file_collection[median], median)
|
||||
} else if (median_name<file_name) {
|
||||
start = median+1
|
||||
} else {
|
||||
end = median-1
|
||||
}
|
||||
}
|
||||
return undefined
|
||||
}
|
47
src/rt/rfwfs/main.ts
Normal file
47
src/rt/rfwfs/main.ts
Normal file
@ -0,0 +1,47 @@
|
||||
import { type EntryCollection } from "./collection"
|
||||
|
||||
const enum EntryType {
|
||||
Directory,
|
||||
File
|
||||
}
|
||||
const enum Permissions {
|
||||
r,
|
||||
w,
|
||||
rw,
|
||||
none
|
||||
}
|
||||
|
||||
interface Entry<T> {
|
||||
readonly name: string,
|
||||
readonly type: EntryType,
|
||||
readonly inner: T,
|
||||
readonly timestamp: number,
|
||||
readonly collection?: EntryCollection<T>,
|
||||
readonly permissions: Permissions,
|
||||
}
|
||||
interface Rfwfs {
|
||||
new_entry: <T extends Entry<T>>(name: string, permissions: Permissions, timestamp: number, inner: T) => Entry<T>,
|
||||
entry_trait: <T extends Entry<T>>(inner: T) => EntryCollection<T>
|
||||
new_entry_tree: <T>(files: T) => T,
|
||||
}
|
||||
|
||||
const rfwfs = {} as Rfwfs
|
||||
|
||||
rfwfs.new_entry = function(name, permissions, timestamp, inner) {
|
||||
const file_type = typeof inner == "object" ? EntryType.Directory : EntryType.File
|
||||
return {
|
||||
name: name,
|
||||
type: file_type,
|
||||
inner: inner,
|
||||
timestamp: timestamp ? timestamp : Math.floor(Date.now()/1000),
|
||||
collection: file_type === EntryType.Directory ? this.entry_trait(inner) : undefined,
|
||||
permissions: permissions,
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
EntryType,
|
||||
Permissions,
|
||||
type EntryCollection,
|
||||
type Entry,
|
||||
}
|
@ -1,13 +1,15 @@
|
||||
import { set_working_dir, SetDirStatus } from "../../fs/fn"
|
||||
import { set_working_dir, SetDirStatus } from "../../../rfwfs/library"
|
||||
import type { Args, Term } from "../list"
|
||||
|
||||
import stdout from "../../../elements/stdout"
|
||||
|
||||
export default function cd(term: Term, args: Args): boolean {
|
||||
const new_dir_status = set_working_dir(args[1])
|
||||
|
||||
if (new_dir_status === SetDirStatus.NotADirectory) {
|
||||
// return <p>{"cd: \""}{bold(args[1])}{"\" is not a directory"}</p>
|
||||
term.appendChild(stdout(`cd: "${args[1]}" is not a directory`))
|
||||
} else if (new_dir_status === SetDirStatus.NotFound) {
|
||||
// return <p>{"cd: The directory \""}{bold(args[1])}{"\" does not exist"}</p>
|
||||
term.appendChild(stdout(`cd: The directory "${args[1]}" does not exist`))
|
||||
}
|
||||
return true
|
||||
}
|
@ -7,7 +7,7 @@ import history from "../../history";
|
||||
const history_command = new SubCommand("Show and manipulate command history")
|
||||
|
||||
history_command.add("show", "Show the history", function(term: Term, _args: Args) {
|
||||
history.file.inner.forEach((entry, ind) => term.appendChild(stdout(`${ind} ${entry}`)))
|
||||
history.file.inner.forEach((entry, ind) => term.appendChild(stdout(`${ind+1} ${entry}`)))
|
||||
})
|
||||
|
||||
history_command.add("clear", "Delete the entire command history", function(term: Term, _args: Args) {
|
||||
|
@ -1,11 +1,30 @@
|
||||
import type { Args, Term } from "../list";
|
||||
import { blue } from "../../color";
|
||||
import { get_working_dir_entries } from "../../../rfwfs/library";
|
||||
import { EntryType, FsEntry } from "../../../rfwfs/core";
|
||||
|
||||
import stdout, { stdout_horizontal_elements } from "../../../elements/stdout";
|
||||
import create from "../../../elements/create";
|
||||
|
||||
const element_collection = <T extends HTMLElement>(): T[] => []
|
||||
|
||||
function show_directory(entry: FsEntry) {
|
||||
const p = create("p")
|
||||
p.append(blue(entry.name, true), "/")
|
||||
return p
|
||||
}
|
||||
|
||||
export default function ls(term: Term, args: Args): boolean {
|
||||
// if (args[1] === undefined) {
|
||||
// for (const dir_name in working_dir) {
|
||||
|
||||
// }
|
||||
// return <p>{`${working_dir}`}</p>
|
||||
// }
|
||||
const ls_elements = element_collection()
|
||||
if (args[1] === undefined) {
|
||||
get_working_dir_entries().forEach(entry => {
|
||||
if (entry.type === EntryType.Directory) {
|
||||
ls_elements.push(show_directory(entry))
|
||||
} else if (entry.type === EntryType.File) {
|
||||
ls_elements.push(stdout(entry.name))
|
||||
}
|
||||
})
|
||||
}
|
||||
term.appendChild(stdout_horizontal_elements(ls_elements))
|
||||
return true
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import { get_working_dir_name_full } from "../../fs/fn";
|
||||
import { get_working_dir_name_full } from "../../../rfwfs/library";
|
||||
import type { Args, Term } from "../list";
|
||||
|
||||
import stdout from "../../../elements/stdout";
|
||||
|
@ -1,75 +0,0 @@
|
||||
import { EntryType, fs, type FsEntrySignature } from "./fs"
|
||||
|
||||
let working_dir = ["/", "home", "user"]
|
||||
|
||||
function get_working_dir_name() {
|
||||
return working_dir[working_dir.length-1]
|
||||
}
|
||||
|
||||
function get_working_dir_name_full(): string {
|
||||
const w_dir_clone = [...working_dir]
|
||||
const root = w_dir_clone.shift()
|
||||
if (root) {
|
||||
return root+w_dir_clone.join("/")
|
||||
}
|
||||
return "shift-error"
|
||||
}
|
||||
|
||||
const enum SetDirStatus {
|
||||
Valid,
|
||||
NotFound,
|
||||
NotADirectory
|
||||
}
|
||||
interface FsIterEntry {
|
||||
readonly entry: FsEntrySignature | null,
|
||||
readonly status: SetDirStatus
|
||||
}
|
||||
function iter_fs_to_goal(w_dir_clone: string[]): FsIterEntry {
|
||||
let next_iter = fs[0]
|
||||
|
||||
for (const w_dir of w_dir_clone) {
|
||||
if (w_dir === "/") { continue }
|
||||
if (next_iter && next_iter.inner) {
|
||||
const found = next_iter.inner.find(entry => entry.name === w_dir)
|
||||
|
||||
if (!found) {
|
||||
return { entry: null, status: SetDirStatus.NotFound }
|
||||
}
|
||||
if (found.type !== EntryType.Directory) {
|
||||
return { entry: null, status: SetDirStatus.NotADirectory }
|
||||
}
|
||||
if (found.name === w_dir_clone[w_dir_clone.length-1]) {
|
||||
return { entry: next_iter, status: SetDirStatus.Valid }
|
||||
} else {
|
||||
next_iter = found.inner as FsEntrySignature
|
||||
}
|
||||
}
|
||||
}
|
||||
return { entry: null, status: SetDirStatus.NotFound }
|
||||
}
|
||||
|
||||
function set_working_dir(name: string): SetDirStatus {
|
||||
if (name === ".") { return SetDirStatus.Valid }
|
||||
|
||||
const w_dir_clone = [...working_dir]
|
||||
if (name === "..") { w_dir_clone.pop() } else { w_dir_clone.push(name) }
|
||||
|
||||
const iter_status = iter_fs_to_goal(w_dir_clone)
|
||||
if (iter_status.status === SetDirStatus.Valid) {
|
||||
working_dir = w_dir_clone
|
||||
}
|
||||
return iter_status.status
|
||||
}
|
||||
|
||||
function working_dir_entries() {
|
||||
const w_dir_clone = [...working_dir]
|
||||
const iter_status = iter_fs_to_goal(w_dir_clone)
|
||||
|
||||
}
|
||||
|
||||
export {
|
||||
get_working_dir_name,
|
||||
get_working_dir_name_full,
|
||||
set_working_dir,
|
||||
SetDirStatus
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
const enum EntryType {
|
||||
Directory,
|
||||
File
|
||||
}
|
||||
const enum Permissions {
|
||||
r,
|
||||
w,
|
||||
rw
|
||||
}
|
||||
|
||||
type FsEntrySignature = Entry<Entry<{}>[]> //I did this!
|
||||
|
||||
const user = [
|
||||
Entry("about_me.txt", "about me inside", Permissions.rw),
|
||||
Entry("services.txt", "services inside", Permissions.rw),
|
||||
Entry("hi", [], Permissions.rw)
|
||||
]
|
||||
const home = [
|
||||
Entry("user", user, Permissions.rw)
|
||||
]
|
||||
const root = [
|
||||
Entry("home", home, Permissions.r),
|
||||
Entry("bin", {}, Permissions.r),
|
||||
]
|
||||
const fs = [
|
||||
Entry("/", root, Permissions.r)
|
||||
]
|
||||
|
||||
type File = string
|
||||
interface Entry<T = File> {
|
||||
readonly inner?: T,
|
||||
readonly name: string,
|
||||
readonly type: EntryType,
|
||||
readonly permissions: Permissions
|
||||
}
|
||||
function Entry<T = File>(name: string, inner: T, permissions: Permissions): Entry<T> {
|
||||
return {
|
||||
type: typeof inner == "object" ? EntryType.Directory : EntryType.File,
|
||||
inner: inner,
|
||||
name: name,
|
||||
permissions: permissions
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
fs,
|
||||
type FsEntrySignature,
|
||||
EntryType,
|
||||
Permissions,
|
||||
Entry
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
@use "../variables.scss";
|
||||
|
||||
@mixin text-styles {
|
||||
.red { color: rgb(var(--color-red)) }
|
||||
.green { color: rgb(var(--color-green)) }
|
||||
@ -30,17 +32,13 @@
|
||||
@mixin formatting {
|
||||
@include stdout-layouts;
|
||||
@include term-elements;
|
||||
|
||||
p {
|
||||
@include text-styles;
|
||||
|
||||
font-size: 1.2rem;
|
||||
p, a, span {
|
||||
font-size: variables.$default-font-size
|
||||
}
|
||||
p {
|
||||
margin: 5px;
|
||||
|
||||
span { font-size: inherit; }
|
||||
a {
|
||||
font-size: inherit;
|
||||
&:hover { text-decoration: underline; }
|
||||
}
|
||||
a:hover { text-decoration: underline; }
|
||||
}
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
$default-font-size: 1.2rem;
|
||||
|
||||
$header-Y: 30px;
|
||||
$footer-Y: 30px;
|
||||
$component-padding: 20px;
|
||||
|
@ -1,9 +1,27 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { createHtmlPlugin } from 'vite-plugin-html'
|
||||
import { ViteEjsPlugin } from 'vite-plugin-ejs'
|
||||
|
||||
import fs from "fs"
|
||||
import path from "path"
|
||||
|
||||
const html_dir = path.join(__dirname, "src", "html")
|
||||
|
||||
function inlineHtml(html_file_name) {
|
||||
try {
|
||||
const html_path = path.resolve(path.join(html_dir, html_file_name+".html"))
|
||||
return fs.readFileSync(html_path, "utf-8")
|
||||
} catch(read_err) {
|
||||
return "[INLINE-ERROR], "+read_err
|
||||
}
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
createHtmlPlugin({minify: true}),
|
||||
ViteEjsPlugin({
|
||||
inlineHtml: inlineHtml
|
||||
})
|
||||
],
|
||||
root: "src",
|
||||
build: {
|
||||
|
Reference in New Issue
Block a user