1 parent 6f1b6d9 commit 0b56650Copy full SHA for 0b56650
1 file changed
examples/template-common.js
@@ -15,6 +15,7 @@ function lessStrict(regExpStr) {
15
16
const runtimeRegexp = /(```\s*(?:js|javascript)\n)?(.*)(\/\*\*\*\*\*\*\/ \(function\(modules\) \{ \/\/ webpackBootstrap\n(?:.|\n)*?\n\/\*\*\*\*\*\*\/ \}\)\n\/\**\/\n)/;
17
const timeRegexp = /\s*Time: \d+ms/g;
18
+const buildAtRegexp = /\s*Built at: .+/mg;
19
const hashRegexp = /Hash: [a-f0-9]+/g;
20
21
exports.replaceBase = (template) => {
@@ -36,6 +37,7 @@ exports.replaceBase = (template) => {
36
37
.replace(webpack, "(webpack)")
38
.replace(webpackParent, "(webpack)/~")
39
.replace(timeRegexp, "")
40
+ .replace(buildAtRegexp, "")
41
.replace(hashRegexp, "Hash: 0a1b2c3d4e5f6a7b8c9d")
42
.replace(/\.chunkhash\./g, ".[chunkhash].")
43
.replace(runtimeRegexp, function(match) {
0 commit comments