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