mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
update build script
This commit is contained in:
1 parent
79d4ef3d36
commit
93d049e18c
6 files changed
+6
-5
No files matched your search
+1
-1
@@ -41,7 +41,7 @@ async function build(name) {
|
||||
const filePath = `${projects[name]}/dist/index.js`;
|
||||
const newFilePath = `${projects[name]}/dist/${name}.js`;
|
||||
const code = banner + fs.readFileSync(filePath);
|
||||
fs.writeFileSync(filePath, code);
|
||||
fs.writeFileSync(filePath, code.replace(/\\n*\s*</g, '<').replace(/>\\n*\s*/g, '>'));
|
||||
fs.renameSync(filePath, newFilePath);
|
||||
console.log(`✨ Built ${name} ${bundles.length} bundles in ${buildTime}ms!`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user