Skip to content

Commit

Permalink
Merge pull request #15235 from strapi/fix/cropper-import
Browse files Browse the repository at this point in the history
Move cropper CSS import from main bundle to upload plugin
  • Loading branch information
gu-stav committed Dec 22, 2022
2 parents 745f344 + 79571b4 commit 05be584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/core/admin/admin/src/components/GlobalStyle/index.js
@@ -1,11 +1,5 @@
import { createGlobalStyle } from 'styled-components';

const loadCss = async () => {
await import(/* webpackChunkName: "cropper-css" */ 'cropperjs/dist/cropper.css');
};

loadCss();

const GlobalStyle = createGlobalStyle`
body {
background: ${({ theme }) => theme.colors.neutral100};
Expand Down
Expand Up @@ -27,6 +27,8 @@ import { AssetType, AssetDefinition } from '../../../constants';
import { AssetPreview } from './AssetPreview';
import { createAssetUrl } from '../../../utils';

import 'cropperjs/dist/cropper.css';

export const PreviewBox = ({
asset,
canUpdate,
Expand Down

0 comments on commit 05be584

Please sign in to comment.