MCPcopy Create free account
hub / github.com/ampproject/amphtml / prependConfig

Function prependConfig

build-system/pr-check/module-tests.js:18–26  ·  view source on GitHub ↗

* Adds a canary or prod config string to all esm and non-esm minified targets.

()

Source from the content-addressed store, hash-verified

16 * Adds a canary or prod config string to all esm and non-esm minified targets.
17 */
18function prependConfig() {
19 const targets = MINIFIED_TARGETS.flatMap((target) => [
20 `dist/${target}.js`,
21 `dist/${target}.mjs`,
22 ]).join(',');
23 timedExecOrDie(
24 `amp prepend-global --${argv.config} --local_dev --fortesting --derandomize --target=${targets}`
25 );
26}
27
28/**
29 * Steps to run during push builds.

Callers 2

pushBuildWorkflowFunction · 0.70
prBuildWorkflowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected