getLoadersByName(config, name) {
		return this.getLoaders(config)
			.map(({ rule, ruleIndex, loaders }) =>
				Array.isArray(loaders)
					? loaders.map((loader, loaderIndex) => ({
							rule,
							ruleIndex,
							loader,
							loaderIndex,
					  }))
					: [{ rule, ruleIndex, loader: loaders, loaderIndex: -1 }]
			)
			.reduce((arr, loaders) => arr.concat(loaders), [])
			.filter(({ loader }) => {
				if (!loader) return false;
				if (typeof loader === 'string') return loader.includes(name);
				return typeof loader.loader === 'string' &&
					loader.loader.includes('proxy-loader')
					? loader.options.loader.includes(name)
					: loader.loader.includes(name);
			});
	}
Returns loaders that match provided name.

@example
helpers.getLoadersByName(config, 'less-loader')

@type {Helpers['getLoadersByName']}

@memberof WebpackConfigHelpers