@geoffdavis92/eleventy-plugin-webpack
Advanced tools
Comparing version
@@ -7,2 +7,3 @@ const webpack = require("webpack"); | ||
const { addCachedGlobalData } = require("./utils"); | ||
const bypassSourceMethod = true; | ||
@@ -16,3 +17,3 @@ const extractFiles = ( | ||
return Object.keys(compilerResult.assets).reduce((acc, key) => { | ||
if (addCachedGlobalData) { | ||
if (addCachedGlobalData && !bypassSourceMethod) { | ||
acc[key] = compilerResult.assets[key].source(); | ||
@@ -19,0 +20,0 @@ } else { |
{ | ||
"name": "@geoffdavis92/eleventy-plugin-webpack", | ||
"author": "Geoff Davis <geoffdavis92@gmail.com>", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -37,2 +37,3 @@ # Eleventy Plugin - Webpack | ||
- When the `eleventyConfig.addCachedGlobalData` property is truthy, the plugin will attempt to extract files and use the `.source()` method, which does not exist on the `assets` constructor: `SizeOnlySource` (ref #1) | ||
- ~~When the `eleventyConfig.addCachedGlobalData` property is truthy, the plugin will attempt to extract files and use the `.source()` method, which does not exist on the `assets` constructor: `SizeOnlySource` (ref [#1](https://github.com/geoffdavis92/eleventy-plugin-webpack/issues/1))~~ | ||
- Addressed by [PR #8](https://github.com/geoffdavis92/eleventy-plugin-webpack/pull/8) |
10431
2.12%185
0.54%38
2.7%