This commit is contained in:
hufeixiong
2022-01-14 09:48:18 +08:00
parent 94175c8de7
commit 387423ce62
12 changed files with 822 additions and 26 deletions

View File

@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-07-07 11:11:52
* @LastEditors: yehuozhili
* @LastEditTime: 2021-09-28 21:15:36
* @LastEditTime: 2022-01-13 15:42:40
* @FilePath: \dooringx\packages\dooringx-example\.umirc.ts
*/
import { defineConfig } from 'umi';
@@ -34,4 +34,12 @@ export default defineConfig({
},
],
fastRefresh: {},
externals: {
react: 'window.React',
'react-dom': 'window.ReactDOM',
},
scripts: [
'https://unpkg.com/react@16.14.0/umd/react.production.min.js',
'https://unpkg.com/react-dom@16.14.0/umd/react-dom.production.min.js',
],
});

View File

@@ -1,19 +1,18 @@
<!--
* @Author: yehuozhili
* @Date: 2021-09-28 21:10:15
* @LastEditors: yehuozhili
* @LastEditTime: 2021-09-28 21:11:22
* @FilePath: \dooringx\packages\dooringx-example\src\pages\document.ejs
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dooringx-example</title>
</head>
<script src="https://unpkg.com/react@17.0.1/umd/react.production.min.js"></script>
<body>
</body>
</html>
<!--
* @Author: yehuozhili
* @Date: 2021-09-28 21:10:15
* @LastEditors: yehuozhili
* @LastEditTime: 2022-01-13 15:42:56
* @FilePath: \dooringx\packages\dooringx-example\src\pages\document.ejs
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dooringx-example</title>
</head>
<body>
</body>
</html>