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

improve:内置polyfill

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