Skip to content

Commit 367e176

Browse files
committed
微前端资料
0 parents  commit 367e176

19 files changed

+7935
-0
lines changed

.babelrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", {
4+
"targets": {
5+
"browsers": ["last 2 versions"]
6+
}
7+
}],
8+
["@babel/preset-react"]
9+
],
10+
"plugins": [
11+
"@babel/plugin-syntax-dynamic-import",
12+
"@babel/plugin-proposal-object-rest-spread"
13+
]
14+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# 微前端入门
2+
3+
## 资料
4+
[基础思路](https://alili.tech/archive/ce685b9f/)
5+
6+
[官网](https://single-spa.js.org/docs/parcels-overview.html)
7+
8+
[微前端架构](https://microfrontends.cn/)
9+
10+
[数据共享思路](https://github.com/me-12/single-spa-portal-example)

index.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<html>
2+
<head>
3+
<!-- Materialize -->
4+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/css/materialize.min.css">
5+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
6+
</head>
7+
<body>
8+
<div id="navBar"></div>
9+
<div id="home"></div>
10+
<div id="angularJS"></div>
11+
12+
<!-- jQuery -->
13+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
14+
<!-- Materialize -->
15+
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/js/materialize.min.js"></script>
16+
<!-- import the single-spa config file -->
17+
<script src="/dist/single-spa.config.js"></script>
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)