Specific composer options for dev/prod #3908
Answered
by
antonmedv
mrhackcz
asked this question in
Help needed
Replies: 1 comment 1 reply
-
host('prod')
->set('composer_options', '--verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader');
host('dev')
->set('composer_options', '--verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader'); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mrhackcz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks, do you know how to distinguish the
composer_options
variable for the production and development environment? I need to set--no-dev
for production use without it in development.I tried using a selector on
set();
which doesn't work.Set label
'composer' => '--no-dev'
and use it inset('composer_options')
withget('labels')['composer']
, which also doesn't work.Any recommendation ? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions