webpack-aemsync-plugin

0.0.4 • Public • Published

Webpack AEMSync plugin

Description

Webpack plugin to autimatically upload webpack outputs to Adobe AEM instance.

For more information about AEMSync visit: https://github.com/gavoja/aemsync

Installation

npm install webpack-aemsync-plugin

yarn add webpack-aemsync-plugin

Usage

    const WebpackAemsyncPlugin = require('webpack-aemsync-plugin');

    plugins: [
            new AemSyncPlugin({
                targets: [
                    'http://admin:vagrant@localhost:4502',
                    'http://admin:vagrant@localhost:4503'
                ],
                pushInterval: 300 //ms
            })
        ],

By default plugin will try to upload all files that are being build during webpack compilation. If you want to track additional paths add it to directories property.

    plugins: [
            new AemSyncPlugin({
                ...
                directories: [
                    path: '../../../content'                
                    exclude: '**/.xml',
                ]
            })
        ],

Keep in mind that this plugin will be initialized only for webpack watch mode

/webpack-aemsync-plugin/

    Package Sidebar

    Install

    npm i webpack-aemsync-plugin

    Weekly Downloads

    1

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    66.9 kB

    Total Files

    8

    Last publish

    Collaborators

    • igornapierala
    • rogemus
    • jplucinski-wtt
    • mateusz.luczak
    • jakub.lamprecht
    • xolir