Webpack plugin to integrate AEMSync into your workflow
npm install webpack-aemsync-pluginWebpack plugin to autimatically upload webpack outputs to Adobe AEM instance.
For more information about AEMSync visit: https://github.com/gavoja/aemsync
``
npm install webpack-aemsync-plugin
yarn add webpack-aemsync-plugin
`
`
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