Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Webpackのビルド負荷が異常に高い #234

Closed
EbiseLutica opened this issue Dec 6, 2020 · 6 comments
Closed

Webpackのビルド負荷が異常に高い #234

EbiseLutica opened this issue Dec 6, 2020 · 6 comments
Labels
🐛 Bug 🗿 Won't fix well-known but will not be fixed because of policy 🐢 Performance

Comments

@EbiseLutica
Copy link
Contributor

EbiseLutica commented Dec 6, 2020

ソース:https://github.com/syuilo/misskey/issues/6901 (解決済みとマークした箇所)

@mei23
Copy link
Contributor

mei23 commented Dec 6, 2020

image

cache: true,

を消しただけで
12.62.1-gp-4.7.0 with max-old-space-size指定なし が 138sec でビルド成功するようになった

@EbiseLutica
Copy link
Contributor Author

🙏 🙏 🙏 🙏 🙏

@EbiseLutica
Copy link
Contributor Author

development環境での生産性向上のために使っているだけなので、productionではcacheしないようにするか

@mei23
Copy link
Contributor

mei23 commented Dec 6, 2020

デフォルト値が
development: memory
production: disabled
みたいなんで、結局cacheオプションは指定しなくてOKみたい

https://webpack.js.org/configuration/other-options/#cache

@EbiseLutica
Copy link
Contributor Author

メモリ1GB+スワップ1GB環境でやはりビルドできない(メモリ不足)

terser-webpack-plugin 5を使ったときに比べてメモリ消費量が爆上がりする

@EbiseLutica
Copy link
Contributor Author

条件式間違えていただけ説がある

@EbiseLutica EbiseLutica added the 🗿 Won't fix well-known but will not be fixed because of policy label Feb 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 Bug 🗿 Won't fix well-known but will not be fixed because of policy 🐢 Performance
Projects
None yet
Development

No branches or pull requests

2 participants