build icon indicating copy to clipboard operation
build copied to clipboard

Value of `netlifyConfig.build.processing` passed to plugins does not reflect values set in the UI

Open ascorbic opened this issue 3 years ago • 2 comments

Describe the bug

If a site has enabled post-processing in the UI, this fact is not exposed in the config object passed top plugins. This is in contrast to other build settings which do include UI values. It would be useful to have acess to this, because frameworks may need to warn a user if it is incompatible with their settings. See https://github.com/netlify/netlify-plugin-nextjs/issues/994

Configuration

  • Enable post-processing on a site
  • Log value of netlifyConfig.build.processing in onPreBuild
  • Observe it is always set to { css: {}, html: {}, images: {}, js: {} }

ascorbic avatar Dec 15 '21 14:12 ascorbic

Thanks for finding this bug @ascorbic.

This is a bug in Bitballoon and the buildbot. I have filed https://github.com/netlify/buildbot/issues/1911 to keep track of it. The problem and its solution seems to be quite straightforward.

ehmicky avatar Dec 15 '21 15:12 ehmicky

This issue has been automatically marked as stale because it has not had activity in 1 year. It will be closed in 14 days if no further activity occurs. Thanks!

github-actions[bot] avatar Dec 23 '22 14:12 github-actions[bot]