0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Nuxt】WARNING in asset size limit: The following asset(s) exceed the recommended size limit を対処する

Posted at

Buildしたらvendors.appのサイズが大きすぎた

vendors.app.347b3bb.js    612 KiB       6  [emitted] [immutable]  [big]  vendors.app

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  vendors.app.347b3bb.js (612 KiB)

このようなwarning

nuxt.configにmaxAssetSizeを設定してのりきる

700KiBまでは大丈夫にする

nuxt.config.js
...
  build: {
    /*
    ** You can extend webpack config here
    */
    extend (config, ctx) {
      config.performance.maxAssetSize = 700 * 1024
    }
  }
...

おそらくvendors.appの容量を減らす方法を検討すべきだと思いますが、
今の所はこれでのりきりました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?