1.0.0 • Published 4 years ago

aem-clientlib-generator-webpack-plugin v1.0.0

Weekly downloads
37
License
MIT
Repository
github
Last release
4 years ago

AEM ClientLib Generator Webpack Plugin


Description

Plugin which integrates aem-clientlib-generator into your webpack setup.

Aem-clientlib-generator makes it possible to work in a single source code directory with a single frontend setup to create multiple AEM Client Libraries. Using configuration file you can control any property of Client Libraries (dependencies, embeds etc).

Installation

Use npm:

npm install aem-clientlib-generator-webpack-plugin

or yarn:

yarn add aem-clientlib-generator-webpack-plugin

Usage

Import the plugin in your webpack configuration file:

const AemClientlibGeneratorPlugin = require('aem-clientlib-generator-webpack-plugin');

And use within plugins property of the webpack configuration:

...
plugins: [
    ...,
    new AemClientlibGeneratorPlugin(),
],
...

AemClientlibGeneratorPlugin takes the same options as aem-clientlib-generator library, please refer to it's documentation.

If no options are provided within webpack configuration, plugin will look for a clientlib.config.js file.