Webpack plugin that integrates with AEMSync to automatically upload files to Adobe Experience Manager (AEM) after manual changes or webpack build completion. Version 0.1.3 is the latest stable release, with no active development since 2016. It is a thin wrapper around the aemsync library and requires AEMSync to be installed separately. The plugin only triggers in webpack watch mode, making it ideal for local development workflows. Compared to other AEM upload plugins, it leverages the efficient aemsync delta-based sync mechanism.
npm install aem-sync-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Configures the AemSyncPlugin in webpack.config.js to upload files to AEM on changes when running webpack --watch.
Ensure webpack is run with the --watch flag, e.g., webpack --watch.
Include credentials in the target URL: http://username:password@host:port.
Set exclude to a glob pattern like '**/node_modules/**' to exclude node_modules from sync.
Run npm install aemsync --save-dev to ensure aemsync is available.
Install aemsync: npm install aemsync --save-dev
Ensure targets is an array, e.g., targets: ['http://admin:admin@localhost:4502']
Use 'new AemSyncPlugin({...})' instead of 'AemSyncPlugin({...})'