Skip to content

Commit 0b56650

Browse files
committed
hide buildAt in examples
1 parent 6f1b6d9 commit 0b56650

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/template-common.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function lessStrict(regExpStr) {
1515

1616
const runtimeRegexp = /(```\s*(?:js|javascript)\n)?(.*)(\/\*\*\*\*\*\*\/ \(function\(modules\) \{ \/\/ webpackBootstrap\n(?:.|\n)*?\n\/\*\*\*\*\*\*\/ \}\)\n\/\**\/\n)/;
1717
const timeRegexp = /\s*Time: \d+ms/g;
18+
const buildAtRegexp = /\s*Built at: .+/mg;
1819
const hashRegexp = /Hash: [a-f0-9]+/g;
1920

2021
exports.replaceBase = (template) => {
@@ -36,6 +37,7 @@ exports.replaceBase = (template) => {
3637
.replace(webpack, "(webpack)")
3738
.replace(webpackParent, "(webpack)/~")
3839
.replace(timeRegexp, "")
40+
.replace(buildAtRegexp, "")
3941
.replace(hashRegexp, "Hash: 0a1b2c3d4e5f6a7b8c9d")
4042
.replace(/\.chunkhash\./g, ".[chunkhash].")
4143
.replace(runtimeRegexp, function(match) {

0 commit comments

Comments
 (0)