mariusbalcytis / webpack-bundle

Bundle to Integrate Webpack into Symfony
MIT License
122 stars 36 forks source link

maba:webpack:compile --env=prod doesn´t work #50

Open asiermarques opened 7 years ago

asiermarques commented 7 years ago

Running the command

php bin/console maba:webpack:compile --env=prod

results in

[Symfony\Component\Console\Exception\CommandNotFoundException]  There are no commands defined in the "maba:webpack" namespace.

Seems like maba:webpack:compile doesn´t accept any params

mariusbalcytis commented 7 years ago

Did you register MabaWebpackBundle inside AppKernel? Maybe it's in dev environment if block?

asiermarques commented 7 years ago

Yes, in fact the php bin/console maba:webpack:compile command, without the env param, works fine.

mariusbalcytis commented 7 years ago

If it's working in dev environment (which is default if you do not pass --env) and not in prod, I would suggest to:

In any way, I cannot see how this could be related to the bundle itself and not to the configuration of it in your current set-up.

b4cedev commented 7 years ago

Just had a similar problem after updating from a 0.5.x version. Even console cache:clear failed trying to access DynamicAssetProvider class, which presumably no longer exists. Manually removing var/cache/prod fixed it.