Skip to content

Commit

Permalink
Feat/mod local cdn (alibaba-fusion#418)
Browse files Browse the repository at this point in the history
* chore(*): use shadow.elemecdn.com  instead of unpkg.com
  • Loading branch information
tao1991123 authored and youluna committed Mar 6, 2019
1 parent 3b97f5a commit e49b0fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions scripts/server/tpls/demo.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
};
}
</script>
<script src="//unpkg.com/babel-polyfill/dist/polyfill.min.js"></script>
<script src="//unpkg.com/react@16.6.1/umd/react.development.js"></script>
<script src="//unpkg.com/react-dom@16.6.1/umd/react-dom.development.js"></script>
<script src="//unpkg.com/moment@2.x/min/moment-with-locales.js"></script>
<script src="//shadow.elemecdn.com/npm/babel-polyfill/dist/polyfill.min.js"></script>
<script src="//shadow.elemecdn.com/npm/react@16.8.3/umd/react.development.js"></script>
<script src="//shadow.elemecdn.com/npm/react-dom@16.8.3/umd/react-dom.development.js"></script>
<script src="//shadow.elemecdn.com/npm/moment@2.24.0/min/moment-with-locales.js"></script>
<script>
window.mountNode = document.getElementById('mount-node');
</script>
Expand Down
2 changes: 1 addition & 1 deletion scripts/server/tpls/partials/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Demo</title>
<link rel="stylesheet" href="//unpkg.com/[email protected]/github-markdown.css" />
<link rel="stylesheet" href="//shadow.elemecdn.com/npm/[email protected]/github-markdown.css" />
<style>
body {
margin: 0;
Expand Down
8 changes: 4 additions & 4 deletions scripts/server/tpls/theme.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
}
</style>
<% } %>
<script src="//unpkg.com/babel-polyfill/dist/polyfill.min.js"></script>
<script src="//unpkg.com/react@16.6.1/umd/react.development.js"></script>
<script src="//unpkg.com/react-dom@16.6.1/umd/react-dom.development.js"></script>
<script src="//unpkg.com/moment@2.x/min/moment-with-locales.js"></script>
<script src="//shadow.elemecdn.com/npm/babel-polyfill@6.26.0/dist/polyfill.min.js"></script>
<script src="//shadow.elemecdn.com/npm/react@16.8.3/umd/react.development.js"></script>
<script src="//shadow.elemecdn.com/npm/react-dom@16.8.3/umd/react-dom.development.js"></script>
<script src="//shadow.elemecdn.com/npm/moment@2.24.0/min/moment-with-locales.js"></script>
</head>
<body>
<div id="container"></div>
Expand Down

0 comments on commit e49b0fa

Please sign in to comment.