@11ty/eleventy-plugin-webc 0.9.2 → 0.9.3
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/eleventyWebcPlugin.js +5 -1
- package/package.json +1 -1
package/eleventyWebcPlugin.js
CHANGED
|
@@ -22,6 +22,10 @@ module.exports = function(eleventyConfig, options = {}) {
|
|
|
22
22
|
transformData: {}, // extra global data for transforms specifically
|
|
23
23
|
}, options);
|
|
24
24
|
|
|
25
|
+
options.bundlePluginOptions = Object.assign({
|
|
26
|
+
hoistDuplicateBundlesFor: ["css", "js"]
|
|
27
|
+
}, options.bundlePluginOptions);
|
|
28
|
+
|
|
25
29
|
// Deprecated: this lives in @11ty/eleventy-plugin-bundle now
|
|
26
30
|
options.filters = filters;
|
|
27
31
|
|
|
@@ -51,7 +55,7 @@ module.exports = function(eleventyConfig, options = {}) {
|
|
|
51
55
|
// If the bundle plugin has not been added, we add it here:
|
|
52
56
|
let bundlePlugin = eleventyConfig.plugins.find(entry => entry.plugin.eleventyPackage === "@11ty/eleventy-plugin-bundle");
|
|
53
57
|
if(!bundlePlugin) {
|
|
54
|
-
eleventyConfig.addPlugin(eleventyBundlePlugin);
|
|
58
|
+
eleventyConfig.addPlugin(eleventyBundlePlugin, options.bundlePluginOptions);
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
templatePlugin(eleventyConfig, options);
|