Исправление компиляции, добавление отладки

This commit is contained in:
2024-03-21 19:52:32 +04:00
parent 387b3925c6
commit ca1a01a06e
5 changed files with 107 additions and 32 deletions
+5 -5
View File
@@ -1,16 +1,16 @@
const { exec } = require("node:child_process");
const { exec } = require('node:child_process');
const libUpload = {
apply: (compiler) => {
compiler.hooks.afterEmit.tap("AfterEmitPlugin", (compilation) => {
exec("./upload.sh", (err, stdout, stderr) => {
compiler.hooks.afterEmit.tap('AfterEmitPlugin', (compilation) => {
exec('./upload.sh', (err, stdout, stderr) => {
if (stdout) process.stdout.write(stdout);
if (stderr) process.stderr.write(stderr);
console.log("Uploaded.");
console.log('Uploaded.');
});
});
},
}
module.exports
module.exports = { libUpload };