webpack-aemsync-plugin
v0.0.4
Published
Webpack plugin to integrate AEMSync into your workflow
Downloads
10
Readme
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