mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-12-12 06:14:09 +01:00
Merge pull request #144 from d0p3t/master
builders: Fix webpack builder lock for multiple configs
This commit is contained in:
@@ -104,6 +104,8 @@ const webpackBuildTask = {
|
|||||||
await sleep(3000);
|
await sleep(3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(`${resourceName}: started building ${configName}`);
|
||||||
|
|
||||||
buildingInProgress = true;
|
buildingInProgress = true;
|
||||||
currentBuildingModule = resourceName;
|
currentBuildingModule = resourceName;
|
||||||
|
|
||||||
@@ -140,7 +142,7 @@ const webpackBuildTask = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log(`${resourceName}: built ${configName}`);
|
console.log(`${resourceName}: built ${configName}`);
|
||||||
|
buildingInProgress = false;
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const weebpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ module.exports = (inp, callback) => {
|
|||||||
|
|
||||||
config.plugins.push(new SaveStatePlugin(inp));
|
config.plugins.push(new SaveStatePlugin(inp));
|
||||||
|
|
||||||
weebpack(config, (err, stats) => {
|
webpack(config, (err, stats) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
callback(err);
|
callback(err);
|
||||||
return;
|
return;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user