wcm-io-frontend / aem-clientlib-generator

Creates configuration files for AEM ClientLibs and synchronizes assets.
Apache License 2.0
62 stars 32 forks source link

Is it possible to have different clientlib root for each clientlib...am planning to have clientlibs at component level #24

Closed Allan9217 closed 4 years ago

ifahrentholz commented 4 years ago

Hi @Allan9217, I do think this is already possible. You can set the "path" property as documented in the README.md.

path {String} Clientlib root path (optional if options.clientLibRoot is set)

Therefore an configuration like this would lead to a clientlib package with a custom root:

module.exports = {
    context: __dirname,
    libs: [
        {
            name: "test.base.apps.fourthWithOutputPath",
            path: 'result/clientlibs-custom-root',
            assets: {
                js: {
                  ...
                },
                css: {
                  ...
                },
            }
        },
    ]
};

Please let me know if that solution is feasible for you or if there is something missing.

Allan9217 commented 4 years ago

Hi @ifahrentholz, Its working fine...Thanks 👍

ifahrentholz commented 4 years ago

Nice :)