getRulesByMatchingFile(config, file) {
		let filePath = resolve(this._cwd, file);
		return this.getRules(config).filter(
			w => w.rule.test && w.rule.test.exec(filePath)
		);
	}
Returns wrapper around all rules that match provided file.

@type {Helpers['getRulesByMatchingFile']}

@memberof WebpackConfigHelpers