mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Minify syntax in dist file
This commit is contained in:
parent
d906de7803
commit
36db8db1e7
3
build.ts
3
build.ts
@ -45,6 +45,9 @@ const build = async (target: BuildTarget, version: string, config: any={}) => {
|
|||||||
entrypoints: ['src/index.ts'],
|
entrypoints: ['src/index.ts'],
|
||||||
outdir: outDir,
|
outdir: outDir,
|
||||||
naming: outputScriptName,
|
naming: outputScriptName,
|
||||||
|
minify: {
|
||||||
|
syntax: true,
|
||||||
|
},
|
||||||
define: {
|
define: {
|
||||||
'Bun.env.BUILD_TARGET': JSON.stringify(target),
|
'Bun.env.BUILD_TARGET': JSON.stringify(target),
|
||||||
'Bun.env.SCRIPT_VERSION': JSON.stringify(version),
|
'Bun.env.SCRIPT_VERSION': JSON.stringify(version),
|
||||||
|
@ -4,7 +4,8 @@ import { renderStylus } from "@macros/build" with {type: "macro"};
|
|||||||
|
|
||||||
|
|
||||||
export function addCss() {
|
export function addCss() {
|
||||||
let css = renderStylus();
|
const STYLUS_CSS = renderStylus();
|
||||||
|
let css = STYLUS_CSS;
|
||||||
|
|
||||||
if (getPref(PrefKey.BLOCK_SOCIAL_FEATURES)) {
|
if (getPref(PrefKey.BLOCK_SOCIAL_FEATURES)) {
|
||||||
css += `
|
css += `
|
||||||
|
Loading…
x
Reference in New Issue
Block a user