https://github.com/wttech/aem-clientlib-generator-webpack-plugin
Plugin which integrates aem-clientlib-generator into your webpack setup.
https://github.com/wttech/aem-clientlib-generator-webpack-plugin
Last synced: 5 months ago
JSON representation
Plugin which integrates aem-clientlib-generator into your webpack setup.
- Host: GitHub
- URL: https://github.com/wttech/aem-clientlib-generator-webpack-plugin
- Owner: wttech
- License: mit
- Created: 2020-02-06T15:02:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-31T13:41:49.000Z (about 5 years ago)
- Last Synced: 2025-03-09T00:28:42.725Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 27
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AEM ClientLib Generator Webpack Plugin
---
## Description
Plugin which integrates [aem-clientlib-generator](https://github.com/wcm-io-frontend/aem-clientlib-generator) into your webpack setup.
[Aem-clientlib-generator](https://github.com/wcm-io-frontend/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](https://github.com/wcm-io-frontend/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.