This repository has been archived by the owner on Apr 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Not wotking with Eleventy > 1.0.0 #35
Comments
This is the new code for const shimmer = require("shimmer");
const Eleventy = require("@11ty/eleventy/src/Eleventy");
module.exports = {
configFunction: (cfg, options = {}) => {
process.on("unhandledRejection", (reason) => {
console.log("Reason: " + reason);
});
function postBuild() {
shimmer.wrap(Eleventy.prototype, "logFinished", function(orig) {
return function() {
const swBuild = require("./src/builder");
swBuild(options, cfg.dir.output).then((res) => console.log(res));
return orig.apply(this);
};
});
}
setImmediate(postBuild);
}
}; |
Hi, did you try creating a new PR? |
I forked this plugin, updated it to work with native |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In latest Eleventy builds the
finish
method was removed fromEleventy
class, so this plugin is not working anymore.Any plan to upgrade it?
Thanks.
The text was updated successfully, but these errors were encountered: