Skip to content

Commit

Permalink
Add args to webpack plugin to find webpack config files
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Jan 6, 2025
1 parent a6b2b9e commit 0866302
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/knip/src/plugins/webpack/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,16 @@ const resolveConfig: ResolveConfig<WebpackConfig> = async (localConfig, options)
return compact([...inputs, [...webpackCLI, ...webpackDevServer].map(toDevDependency)].flat());
};

const args = {
binaries: ['webpack', 'webpack-dev-server'],
config: true,
};

export default {
title,
enablers,
isEnabled,
config,
resolveConfig,
args,
} satisfies Plugin;

0 comments on commit 0866302

Please sign in to comment.