LoginSignup
1
0

More than 1 year has passed since last update.

composerコマンドのオプションをデフォルトにしたい

Posted at

オプションを毎回付けるのが面倒

面倒な上に忘れがち。

$ composer install -o
$ composer dump-autoload -o

デフォルトでオプションを付ける

composer.jsonconfigから設定できます。

composer.json
{
  "config": {
    "optimize-autoloader": true
  }
}

設定後は自動でオプションが適用されます。

# オプションなしでOK
$ composer install
$ composer dump-autoload

設定方法の詳細は公式ドキュメントに掲載されています。

1
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
1
0