hide buildAt in examples

This commit is contained in:
Tobias Koppers 2018-02-10 15:09:34 +01:00
parent 6f1b6d9d98
commit 0b566508fb
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ function lessStrict(regExpStr) {
const runtimeRegexp = /(```\s*(?:js|javascript)\n)?(.*)(\/\*\*\*\*\*\*\/ \(function\(modules\) \{ \/\/ webpackBootstrap\n(?:.|\n)*?\n\/\*\*\*\*\*\*\/ \}\)\n\/\**\/\n)/;
const timeRegexp = /\s*Time: \d+ms/g;
const buildAtRegexp = /\s*Built at: .+/mg;
const hashRegexp = /Hash: [a-f0-9]+/g;
exports.replaceBase = (template) => {
@ -36,6 +37,7 @@ exports.replaceBase = (template) => {
.replace(webpack, "(webpack)")
.replace(webpackParent, "(webpack)/~")
.replace(timeRegexp, "")
.replace(buildAtRegexp, "")
.replace(hashRegexp, "Hash: 0a1b2c3d4e5f6a7b8c9d")
.replace(/\.chunkhash\./g, ".[chunkhash].")
.replace(runtimeRegexp, function(match) {