adjust webpack & files
This commit is contained in:
@@ -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"];
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
|
||||||
// );
|
|
||||||
Reference in New Issue
Block a user