Abstract away and document advanced constants used in webpack config #14492
Labels
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Status] In Progress
Tracking issues with work in progress
[Tool] WP Scripts
/packages/scripts
[Type] Build Tooling
Issues or PRs related to build tooling
[Type] Developer Documentation
Documentation for developers
The documentation around webpack config has been documented in-depth as explained in #8982 (comment).
The last part left is how one can take advantage of global variables to do some advanced work:
WP_BUNDLE_ANALYZER
WP_DEVTOOL
WP_LIVE_RELOAD_PORT
Ideally, those constants should be abstracted with CLI arguments similar to @draganescu did in #14129. In effect, we would be able to run the following, e.g.:
Example of the existing implementation of similar CLI args for
npx wp-scripts test-e2e
:https://github.com/WordPress/gutenberg/blob/master/packages/scripts/scripts/test-e2e.js#L46-L65
The text was updated successfully, but these errors were encountered: