Skip to content

Commit 9b0233e

Browse files
committed
fixed webpack#991
1 parent aa31878 commit 9b0233e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/Stats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Stats.prototype.toJson = function toJson(options, forToString) {
111111
}
112112
if(showPublicPath) {
113113
obj.publicPath = this.compilation.mainTemplate.getPublicPath({
114-
hash: this.compilation.renderedHash
114+
hash: this.compilation.hash
115115
});
116116
}
117117
if(showAssets) {

test/configCases/hash-length/output-filename/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
module.exports = [{
22
output: {
3+
publicPath: "/[hash:6]/",
34
filename: 'bundle0.[hash:6].js'
45
}
56
}, {
67
output: {
8+
publicPath: "/[hash]/",
79
filename: 'bundle1.[hash].js'
810
}
911
}, {

0 commit comments

Comments
 (0)