-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (48 loc) · 1.55 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title>SystemJS Browser App</title>
<script src="lib/babel/polyfill.min.js"></script>
<script crossorigin src="lib/react/react.production.min.js"></script>
<script src="lib/systemjs/src/system.js"></script>
<script>
SystemJS.config({
defaultExtension: true,
meta: {
"*.css": {
loader: "css",
},
},
babelOptions: {
react: true,
},
map: {
"plugin-babel": "lib/systemjs/plugins/plugin-babel/plugin-babel.js",
"systemjs-babel-build":
"lib/systemjs/plugins/plugin-babel/systemjs-babel-browser.js",
react: "lib/react/react.production.min.js",
"react-dom": "lib/react/react-dom.production.min.js",
css: "lib/systemjs/plugins/plugin-css/css.js",
classnames: "lib/classnames/index.min.js",
"react-router-dom": "lib/@remix-run/react-router-dom/react-router-dom.production.min.js",
"react-router": "lib/@remix-run/react-router/react-router.production.min.js",
"@remix-run/router": "lib/@remix-run/router/remix-run.router.min.js",
},
transpiler: "plugin-babel",
})
SystemJS.config({
map: {
"@app": "src/app/index.js",
"@pages": "src/pages/index.js",
},
})
SystemJS.import("src/main.jsx").then(function (module) {
console.log("REACT START")
})
</script>
</head>
<body>
<div id="root"></div>
</body>
</html>