mirror of
https://codeberg.org/yeentown/barkey
synced 2024-12-22 20:00:01 +00: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' });
|
||||
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 });
|
||||
await fs.writeFile(`./packages/backend/built/server/web/${path.basename(file)}`, code);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue