adjust webpack & files

This commit is contained in:
Gabe Yuan
2023-08-09 16:34:15 +08:00
parent 2ec95ee3a3
commit 5fe633b2f2
2 changed files with 1 additions and 46 deletions

View File

@@ -142,7 +142,7 @@ const userscriptWebpack = (config, env) => {
return config; return config;
}; };
// 文档 // 开发
const webWebpack = (config, env) => { const webWebpack = (config, env) => {
const names = ["HtmlWebpackPlugin"]; const names = ["HtmlWebpackPlugin"];

View File

@@ -1,45 +0,0 @@
// import React, { useEffect, useState } from "react";
// import ReactDOM from "react-dom/client";
// const App = () => {
// const [loading, setLoading] = useState(true);
// useEffect(() => {
// const timer = setTimeout(() => {
// if (!document.querySelector("header")) {
// setLoading(false);
// }
// }, 5000);
// return () => {
// clearTimeout(timer);
// };
// }, []);
// if (loading) {
// return (
// <center>
// <p>KISS Translator</p>
// <h1 style={{ textAlign: "center" }}>loading...</h1>
// </center>
// );
// }
// return (
// <center>
// <p>
// <a href={process.env.REACT_APP_HOMEPAGE}>KISS Translator</a> Script not
// installed or disabled!
// </p>
// <h1>
// <a href={process.env.REACT_APP_HOMEPAGE}>Click here read more!</a>
// </h1>
// </center>
// );
// };
// const root = ReactDOM.createRoot(document.getElementById("root"));
// root.render(
// <React.StrictMode>
// <App />
// </React.StrictMode>
// );