Skip to content

Commit 13b7da6

Browse files
committed
fix initial creation of lockfile
1 parent 8f2e9dc commit 13b7da6

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/test/fixtures/temp-*
55
/test/temp
66
/test/ChangesAndRemovals
7+
/test/**/dev-defaults.webpack.lock
78
/benchmark/js
89
/benchmark/fixtures
910
/examples/**/dist

lib/schemes/HttpUriPlugin.js

+1
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ Run build with un-frozen lockfile to automatically fix lockfile.`
10441044
inProgressWrite.push(runWrite);
10451045
} else {
10461046
inProgressWrite = [];
1047+
runWrite();
10471048
}
10481049
}
10491050
);

test/configCases/asset-modules/http-url/dev-defaults.webpack.lock

-18
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const fs = require("fs");
2+
const path = require("path");
3+
4+
module.exports = {
5+
beforeExecute() {
6+
try {
7+
fs.unlinkSync(path.join(__dirname, "dev-defaults.webpack.lock"));
8+
} catch (e) {}
9+
},
10+
afterExecute() {
11+
try {
12+
fs.unlinkSync(path.join(__dirname, "dev-defaults.webpack.lock"));
13+
} catch (e) {}
14+
}
15+
};

0 commit comments

Comments
 (0)