@adobe/helix-deploy 10.1.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/bundler/WebpackBundler.js +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [10.2.0](https://github.com/adobe/helix-deploy/compare/v10.1.0...v10.2.0) (2024-01-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* allow addition of webpack plugins. ([95eb9bb](https://github.com/adobe/helix-deploy/commit/95eb9bb8019dc969e5b7630a32a4c95efbf4b371)), closes [#641](https://github.com/adobe/helix-deploy/issues/641) [#642](https://github.com/adobe/helix-deploy/issues/642)
|
|
7
|
+
|
|
1
8
|
# [10.1.0](https://github.com/adobe/helix-deploy/compare/v10.0.1...v10.1.0) (2024-01-18)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -100,6 +100,15 @@ export default class WebpackBundler extends BaseBundler {
|
|
|
100
100
|
if (cfg.progressHandler) {
|
|
101
101
|
opts.plugins.push(new webpack.ProgressPlugin(cfg.progressHandler));
|
|
102
102
|
}
|
|
103
|
+
|
|
104
|
+
const customizePath = path.join(cfg.cwd, 'hlx.webpack.customize.js');
|
|
105
|
+
if (await fse.pathExists(customizePath)) {
|
|
106
|
+
cfg.log.info(`--: Using custom webpack config from ${customizePath}`);
|
|
107
|
+
const customize = await import(customizePath);
|
|
108
|
+
if (customize.extraPlugins && typeof customize.extraPlugins === 'function') {
|
|
109
|
+
opts.plugins.push(...customize.extraPlugins(cfg, opts));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
103
112
|
return opts;
|
|
104
113
|
}
|
|
105
114
|
|