LoginSignup
9
8

More than 3 years have passed since last update.

Nuxt.js(v2.8.x)のビルドを1行で爆速化。

Last updated at Posted at 2019-08-09

ビルドを爆速化したければ、nuxt.config.jsに以下1行を追加。

nuxt.config.js
module.exports = {
  ...
  build: {
    hardSource: true, // ←これ
    ...
  }
}

注意として、ドキュメントに記載ありますが、実験的機能です。修正反映漏れがないかエラー出ていないかなど、自身でちゃんとチェックすること。

少し不安があるとはいえ、かなり爆速になるのでhardSource: trueがないと生きていけない体にすぐになる。

すごいぞNuxt!

9
8
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
9
8