Composer in Symfony2 creates the same assets twice (jquery, jqueryui)

I added jquery and jqueryui to composer.json:

"require": {
    ...
    "components/jquery": "1.11.*@dev",
    "components/jqueryui": "1.10.4"
}

and the composer downloads both libraries and places them in the vendor / components, as well as in the / components, so I have two copies of these libraries. How can I get rid of the components / directory?

+3
source share
1 answer

You can specify the directory with the output of the component with the directive component-dirin the composer.json'sconfig` section .

Example:

{
    "require": {
        "components/jquery": "~1.10"
    },
    "config": {
        "component-dir": "web/assets"
    }
}

By default is used components.

Just set to /tmpβ€œdisable” the reset to the second line.

Edit: Unfortunately, the composer refuses to accept the goal setting on /dev/null.

-.

+1

All Articles