Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve AMP_CONFIG handling during build #35773

Merged
merged 11 commits into from
Aug 25, 2021
Prev Previous commit
Next Next commit
update comments
  • Loading branch information
samouri committed Aug 25, 2021
commit 6d7625144aaa21f0c459cbea8b147036d935581f
8 changes: 2 additions & 6 deletions build-system/tasks/prepend-global/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,10 @@ async function getConfig(

/**
* Given a target, retrieves the appropriate AMP_CONFIG string to prepend.
* Returns an empty string
* Writes AMP_CONFIG to a runtime file. Optionally enables localDev mode and
* fortesting mode. Called by "amp build" and "amp dist" while building
* various runtime files.
*
* Returns an empty string if no AMP_CONFIG is necessary.
*
* @param {string} filename the file being operated on.
* @param {Object} options Whether or not to enable testing mode.
* @param {Object} options
* @return {!Promise<string>}
*/
async function getAmpConfigForFile(filename, options) {
Expand Down