From 423977b54a8de763937b0f3abfe0eadc3fb7ab0f Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Sun, 9 Jun 2019 16:27:52 +0100 Subject: [PATCH] Add custom initialiser to account for upstream change See: https://github.com/johnagan/clean-webpack-plugin/pull/138 --- packages/clean/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/clean/index.js b/packages/clean/index.js index e082f5b56..f4d07ed80 100644 --- a/packages/clean/index.js +++ b/packages/clean/index.js @@ -6,5 +6,6 @@ module.exports = ({ pluginId = 'clean', ...opts } = {}) => neutrino => { neutrino.config .plugin(pluginId) - .use(require.resolve('clean-webpack-plugin'), [options]); + .use(require.resolve('clean-webpack-plugin'), [options]) + .init((Plugin, args) => new Plugin.CleanWebpackPlugin(...args)); };