feat: dev builds init
This commit is contained in:
parent
a7e7566d38
commit
bc80f432b1
2 changed files with 6 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable no-restricted-syntax */
|
||||
// eslint-disable-next-line simple-import-sort/imports
|
||||
import swc from "@swc/core";
|
||||
import { execSync } from "child_process";
|
||||
|
|
@ -32,6 +33,9 @@ try {
|
|||
footer: {
|
||||
js: "//# sourceURL=bunny"
|
||||
},
|
||||
define: {
|
||||
__DEV__: String(!isRelease)
|
||||
},
|
||||
loader: { ".png": "dataurl" },
|
||||
legalComments: "none",
|
||||
plugins: [
|
||||
|
|
@ -65,7 +69,6 @@ try {
|
|||
});
|
||||
|
||||
build.onEnd(result => {
|
||||
const { outfile } = build.initialOptions;
|
||||
console.log(`Built with ${result.errors?.length} errors!`);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export const PyoncordIcon = _PyoncordIcon as string;
|
|||
|
||||
export default function initSettings() {
|
||||
registerSection({
|
||||
name: "Bunny",
|
||||
name: "Bunny" + (__DEV__ ? " (DEV)" : ""),
|
||||
items: [
|
||||
{
|
||||
key: "BUNNY",
|
||||
|
|
@ -56,6 +56,7 @@ export default function initSettings() {
|
|||
});
|
||||
|
||||
// Compat for plugins which injects into the settings
|
||||
// Flaw: in the old UI, this will be displayed anyway with no items
|
||||
registerSection({
|
||||
name: "Vendetta",
|
||||
items: []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue