mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-28 22:32:42 +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
|
// Hide internal assets and source maps in stats
|
||||||
const hiddenAssets = [
|
const hiddenAssets = [
|
||||||
/.map$/,
|
/.map$/,
|
||||||
/index\..+\.html$/
|
/index\..+\.html$/,
|
||||||
|
/vue-ssr-client-manifest.json/
|
||||||
]
|
]
|
||||||
const statsJson = stats.toJson(this.webpackStats, true)
|
const statsJson = stats.toJson(this.webpackStats, true)
|
||||||
statsJson.assets = statsJson.assets.filter(asset => hiddenAssets.every(e => !e.test(asset.name)))
|
statsJson.assets = statsJson.assets.filter(asset => hiddenAssets.every(e => !e.test(asset.name)))
|
||||||
|
Loading…
Reference in New Issue
Block a user