-
Notifications
You must be signed in to change notification settings - Fork 75
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
webpack.base: update for new frontend component config - bundlePfModules and htmlPlugin.inject #1342
Conversation
…les and htmlPlugin.inject Replaces ansible#1188 As of `@redhat-cloud-services/frontend-components-config` 4.5.0+, patternfly is removed from the build so as not to clash with other patternfly versions in cloud. This is not desirable for standalone/standalone-keycloak => disabling for non-insights builds. But the option only affects `config.resolve.alias`, which we override in `webpack-ts-overrides.js`. So merging the overrides together with base so we can merge the config properly and get both sets of aliases. As of `@redhat-cloud-services/frontend-components-config` 4.5.4+, htmlPlugin is configured to not inject js & css to html by default. This is not desirable for standalone/standalone-keycloak => setting inject:true for non-insights builds.
…ting for App.$BUILD_HASH.js
between `@redhat-cloud-services/frontend-components-config` 4.5.6 and 4.5.8, the js output filename changed from `js/App.(hash).js` to `js/App.(timestamp).(hash).js` that breaks BUILD_HASH, setting it to the timestamp, but expecting the timestamp to be the whole string .. and failing fixing to set BUILD_HASH to both timestamp and hash
Ah, this only passed cypress before updating from 4.5.6 to 4.5.8 :)... So...
It should go green this time @ZitaNemeckova :) |
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.
LGTM 👍
Replaces #1188
As of
@redhat-cloud-services/frontend-components-config
4.5.0+, patternfly is removed from the build so as not to clash with other patternfly versions in cloud.This is not desirable for standalone/standalone-keycloak => disabling for non-insights builds.
But the option only affects
config.resolve.alias
, which we override inwebpack-ts-overrides.js
.So merging the overrides together with base so we can merge the config properly and get both sets of aliases.
As of
@redhat-cloud-services/frontend-components-config
4.5.4+,HtmlWebpackPlugin
is configured to not inject js & css to html by default.This is not desirable for standalone/standalone-keycloak => setting inject to true for non-insights builds.
Also added a couple of FIXME comments with things we may want to resolve for cloud config, while things still work without it :)
Cc @ZitaNemeckova , we may want to consider merging with #920. (Or #1373.)