MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / addCopyRule

Function addCopyRule

packages/webpack5/src/helpers/copyRules.ts:31–37  ·  view source on GitHub ↗
(globOrObject: string | object)

Source from the content-addressed store, hash-verified

29 * @param {string|object} globOrObject
30 */
31export function addCopyRule(globOrObject: string | object) {
32 if (typeof globOrObject === 'string') {
33 return copyRules.add(globOrObject);
34 }
35
36 additionalCopyRules.push(globOrObject);
37}
38
39/**
40 * Utility to remove a copy rule. The glob should be the exact glob

Callers 2

applyFileReplacementsFunction · 0.90
base.tsFile · 0.90

Calls 2

addMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected