mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 21:40:45 +01:00
fix indentation in build-assets.mjs
This commit is contained in:
parent
652cc8602c
commit
8897b191d9
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue