mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-02-09 06:33:29 +08:00
Set 'buildingInProgress' to false after successful config build to not lock other builds
- Log build in progress to console - webpack, not weebpack, weebs! - Add yarn.lock
This commit is contained in:
parent
88f4f974b8
commit
e2fe323d88
@ -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();
|
||||
});
|
||||
}));
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user