Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #144 from d0p3t/master
Browse files Browse the repository at this point in the history
builders: Fix webpack builder lock for multiple configs
  • Loading branch information
blattersturm committed Jan 14, 2021
2 parents 88f4f97 + e2fe323 commit 7680f31
Show file tree
Hide file tree
Showing 3 changed files with 2,330 additions and 2,328 deletions.
4 changes: 3 additions & 1 deletion resources/[system]/[builders]/webpack/webpack_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ const webpackBuildTask = {
await sleep(3000);
}

console.log(`${resourceName}: started building ${configName}`);

buildingInProgress = true;
currentBuildingModule = resourceName;

Expand Down Expand Up @@ -140,7 +142,7 @@ const webpackBuildTask = {
}

console.log(`${resourceName}: built ${configName}`);

buildingInProgress = false;
resolve();
});
}));
Expand Down
4 changes: 2 additions & 2 deletions resources/[system]/[builders]/webpack/webpack_runner.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const weebpack = require('webpack');
const webpack = require('webpack');
const path = require('path');
const fs = require('fs');

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7680f31

Please sign in to comment.