[CORL-127] Custom CSS (#2194)

* feat: moved html-webpack-plugin to custom server templates in production

* fix: fixed templates

* fix: removed sri for the time being

* fix: fixed up tests for new field name
This commit is contained in:
Wyatt Johnson
2019-02-13 20:45:11 +00:00
committed by GitHub
parent c91a0fafa5
commit aa2346b715
20 changed files with 492 additions and 392 deletions
@@ -20,7 +20,7 @@ const CustomCSSConfig: StatelessComponent<Props> = ({ disabled }) => (
<FormField>
<HorizontalGutter size="full">
<Localized id="configure-advanced-customCSS">
<Header container={<label htmlFor="configure-advanced-customCssUrl" />}>
<Header container={<label htmlFor="configure-advanced-customCSSURL" />}>
Custom CSS
</Header>
</Localized>
@@ -33,7 +33,7 @@ const CustomCSSConfig: StatelessComponent<Props> = ({ disabled }) => (
styles. Can be internal or external.
</Typography>
</Localized>
<Field name="customCssUrl">
<Field name="customCSSURL">
{({ input, meta }) => (
<>
<TextField
@@ -27,7 +27,7 @@ class CustomCSSConfigContainer extends React.Component<Props> {
const enhanced = withFragmentContainer<Props>({
settings: graphql`
fragment CustomCSSConfigContainer_settings on Settings {
customCssUrl
customCSSURL
}
`,
})(CustomCSSConfigContainer);