Skip to content

Commit 89c8650

Browse files
Fix AR storybook error CleanCSS
1 parent 4b58863 commit 89c8650

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

apps-rendering/.storybook/fonts-css.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import CleanCSS from 'clean-css';
2-
31
type FontFamily =
42
| 'GH Guardian Headline'
53
| 'Guardian Egyptian Web' // Legacy of GH Guardian Headline
@@ -278,5 +276,4 @@ const getStyleString: () => string = () => {
278276
);
279277
};
280278

281-
export const getFontsCss = (): string =>
282-
new CleanCSS().minify(getStyleString()).styles;
279+
export const getFontsCss = (): string => getStyleString();

apps-rendering/.storybook/main.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ module.exports = {
1616
// Global options for webpack
1717
config.resolve.extensions?.push('.ts', '.tsx');
1818

19-
config.resolve.fallback ??= {};
20-
// clean-css will try to import these packages
21-
config.resolve.fallback['http'] = false;
22-
config.resolve.fallback['https'] = false;
23-
2419
// Required as otherwise 'process' will not be defined when included on its own (without .env)
2520
// e.g process?.env?.SOME_VAR
2621
config.plugins.push(

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)