-
Notifications
You must be signed in to change notification settings - Fork 141
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
Build production and development JS builds in gulp watch #63
Conversation
…le to test production builds
👍 |
First thing I notice is that eslint fails tests. Need to add prod to excludes in unit tests but also many dev files cause eslint errors. Also phpcs doesn't pass through. Can you check these to be failsafe @Niq1982? I'll test the other JS build processes soon-ish. |
…te gutenberg build
…air-light into prod-and-dev-js-builds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, merged.
As decided earlier this year in our dev-retreat: Change JS builds so they build development and production bundles and load them in WP according to the
WP_ENV
variable.Also, added the possibility to use URL parameter
?load_production_builds
for testing production builds (Both JS and CSS) in development environment.