mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-03 06:07: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'],
|
||||
outdir: outDir,
|
||||
naming: outputScriptName,
|
||||
minify: {
|
||||
syntax: true,
|
||||
},
|
||||
define: {
|
||||
'Bun.env.BUILD_TARGET': JSON.stringify(target),
|
||||
'Bun.env.SCRIPT_VERSION': JSON.stringify(version),
|
||||
|
@ -4,7 +4,8 @@ import { renderStylus } from "@macros/build" with {type: "macro"};
|
||||
|
||||
|
||||
export function addCss() {
|
||||
let css = renderStylus();
|
||||
const STYLUS_CSS = renderStylus();
|
||||
let css = STYLUS_CSS;
|
||||
|
||||
if (getPref(PrefKey.BLOCK_SOCIAL_FEATURES)) {
|
||||
css += `
|
||||
|
Loading…
x
Reference in New Issue
Block a user