提交 4417903a authored 作者: vipcxj's avatar vipcxj

improve:内置polyfill

上级 2b6aee4a
......@@ -16,6 +16,7 @@
"ie >= 9"
],
"dependencies": {
"@babel/polyfill": "^7.0.0",
"@babel/runtime": "^7.0.0",
"antd": "^3.9.2",
"axo": "^0.0.2",
......
......@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title><%= htmlWebpackPlugin.options.title %></title>
<script src="https://cdn.bootcss.com/babel-polyfill/7.0.0-beta.3/polyfill.min.js"></script>
<!--<script src="https://cdn.bootcss.com/babel-polyfill/7.0.0-beta.3/polyfill.min.js"></script>-->
<!--<link rel="stylesheet" href="/index.css" />-->
</head>
<body>
......
......@@ -158,6 +158,7 @@ const cssRules = [
const config = {
context: path.resolve(__dirname),
entry: {
polyfill: '@babel/polyfill',
main: './src/index.js',
},
output: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论