1
0
mirror of https://github.com/citizenfx/cfx-server-data.git synced 2025-01-08 22:22:57 +08:00

Merge pull request #144 from d0p3t/master

builders: Fix webpack builder lock for multiple configs
This commit is contained in:
リーフストーム 2021-01-14 09:56:41 +01:00 committed by GitHub
commit 7680f316a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2330 additions and 2328 deletions

View File

@ -104,6 +104,8 @@ const webpackBuildTask = {
await sleep(3000);
}
console.log(`${resourceName}: started building ${configName}`);
buildingInProgress = true;
currentBuildingModule = resourceName;
@ -140,7 +142,7 @@ const webpackBuildTask = {
}
console.log(`${resourceName}: built ${configName}`);
buildingInProgress = false;
resolve();
});
}));

View File

@ -1,4 +1,4 @@
const weebpack = require('webpack');
const webpack = require('webpack');
const path = require('path');
const fs = require('fs');
@ -59,7 +59,7 @@ module.exports = (inp, callback) => {
config.plugins.push(new SaveStatePlugin(inp));
weebpack(config, (err, stats) => {
webpack(config, (err, stats) => {
if (err) {
callback(err);
return;

File diff suppressed because it is too large Load Diff