mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 09:24:48 +00:00
. literally
This commit is contained in:
parent
d41f4daa9b
commit
f2914a49c0
2
build.ts
2
build.ts
@ -91,7 +91,7 @@ if (!isDev) {
|
|||||||
|
|
||||||
console.log(chalk.cyan('Copying other files...\n'));
|
console.log(chalk.cyan('Copying other files...\n'));
|
||||||
copyFiles.forEach((file) => {
|
copyFiles.forEach((file) => {
|
||||||
const outputPath = file.replace(new RegExp(`^${srcDir}`), publicDir);
|
const outputPath = file.replace(new RegExp(`^${srcDir}`), publicDir).replace(/\.js$/, '.js');
|
||||||
mkdirSync(dirname(outputPath), { recursive: true });
|
mkdirSync(dirname(outputPath), { recursive: true });
|
||||||
writeFileSync(outputPath, readFileSync(file));
|
writeFileSync(outputPath, readFileSync(file));
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user