build.js: apply hack with PF fix for failing pixel tests

Patternfly-react is in freeze right now, essentially till June when v5
is first released. This is a super hacky work around - but better than
having UI regressions.

This can be undone once patternfly with
https://github.com/patternfly/patternfly-react/pull/8864 is released.
This commit is contained in:
Katerina Koukiou 2023-03-25 10:58:20 +01:00
parent 226ceffd0a
commit 584c9a3cac

View file

@ -143,6 +143,13 @@ async function build() {
'1450px': '1100px',
}
}),
replace({
include: /DataList.js$/,
values: {
'import stylesGrid': "// HACK: revert when https://github.com/patternfly/patternfly-react/pull/8864 is released",
stylesGrid: 'styles',
}
}),
sassPlugin({
loadPaths: [...nodePaths, 'node_modules'],
quietDeps: true,