mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 19:36:20 +00:00
Move css import of cropperjs into GlobalStyle
Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
parent
faa557ecbf
commit
0e2eda20f5
@ -6,6 +6,7 @@ const loadCss = async () => {
|
||||
/* webpackChunkName: "fontawesome-css-all" */ '@fortawesome/fontawesome-free/css/all.css'
|
||||
);
|
||||
await import(/* webpackChunkName: "fontawesome-js" */ '@fortawesome/fontawesome-free/js/all.min');
|
||||
await import(/* webpackChunkName: "fontawesome-js" */ 'cropperjs/dist/cropper.css');
|
||||
};
|
||||
|
||||
loadCss();
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import Cropper from 'cropperjs';
|
||||
import { useRef, useEffect, useState } from 'react';
|
||||
import 'cropperjs/dist/cropper.css';
|
||||
|
||||
const QUALITY = 1;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user