fix indentation in build-assets.mjs
This commit is contained in:
parent
652cc8602c
commit
8897b191d9
|
@ -78,7 +78,7 @@ async function buildBackendScript() {
|
||||||
]) {
|
]) {
|
||||||
let source = await fs.readFile(file, { encoding: 'utf-8' });
|
let source = await fs.readFile(file, { encoding: 'utf-8' });
|
||||||
source = source.replaceAll(/\bLANGS\b/g, JSON.stringify(Object.keys(locales)));
|
source = source.replaceAll(/\bLANGS\b/g, JSON.stringify(Object.keys(locales)));
|
||||||
source = source.replaceAll(/\bLANGS_VERSION\b/g, JSON.stringify(localesVersion));
|
source = source.replaceAll(/\bLANGS_VERSION\b/g, JSON.stringify(localesVersion));
|
||||||
const { code } = await terser.minify(source, { toplevel: true });
|
const { code } = await terser.minify(source, { toplevel: true });
|
||||||
await fs.writeFile(`./packages/backend/built/server/web/${path.basename(file)}`, code);
|
await fs.writeFile(`./packages/backend/built/server/web/${path.basename(file)}`, code);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue