From acf69f957138f3103a89875dd1a06af5b10e9e6e Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 11 Feb 2023 08:37:42 +0800 Subject: [PATCH] Adjust the order of the CSS --- .prettierrc | 2 +- src/app.jsx | 4 +++- src/main.jsx | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.prettierrc b/.prettierrc index 07e43051..21771860 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,7 +4,7 @@ "singleQuote": true, "trailingComma": "all", "importOrder": [ - "index.css$", + "^[^.].*.css$", ".css$", "", "^../", diff --git a/src/app.jsx b/src/app.jsx index 70b8c0a8..a5b0436c 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -1,6 +1,8 @@ -import './app.css'; +import '@szhsin/react-menu/dist/core.css'; import 'toastify-js/src/toastify.css'; +import './app.css'; + import debounce from 'just-debounce-it'; import { useEffect, diff --git a/src/main.jsx b/src/main.jsx index e43407d5..e2006dbf 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -1,7 +1,5 @@ import './index.css'; -import '@szhsin/react-menu/dist/core.css'; - import { render } from 'preact'; import { HashRouter } from 'react-router-dom';