mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-27 05:42:36 +00:00
webpack: hide internal assets and source maps in stats
This commit is contained in:
parent
29ed894c43
commit
b460e4e2f2
@ -377,7 +377,8 @@ export default class Builder extends Tapable {
|
||||
// Hide internal assets and source maps in stats
|
||||
const hiddenAssets = [
|
||||
/.map$/,
|
||||
/index\..+\.html$/
|
||||
/index\..+\.html$/,
|
||||
/vue-ssr-client-manifest.json/
|
||||
]
|
||||
const statsJson = stats.toJson(this.webpackStats, true)
|
||||
statsJson.assets = statsJson.assets.filter(asset => hiddenAssets.every(e => !e.test(asset.name)))
|
||||
|
Loading…
Reference in New Issue
Block a user