[Webpack 2] Polyfill Promises for Webpack 2
2016-06-22 20:50
567 查看
If you're going to use code splitting with Webpack 2, you'll need to make sure the browser has support for the ES6
Just include the polyfill into index.html:
Polyfill.io
PromiseAPI. This means that if you are required to support an old browser, you need to provide a polyfill. Polyfilling is relatively trivial to do with Webpack, but because Webpack itself depends on this particular polyfill, you have to come up with another way of doing so. In this lesson, we'll see how we can use the polyfill.io service to automatically polyfill this API (and others) for us.
Just include the polyfill into index.html:
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
Polyfill.io
相关文章推荐
- [Webpack 2] Tree shaking with Webpack 2
- [Webpack 2] Validate your Webpack config with webpack-validator
- (二)webpack入门——webpack的使用
- (一)webpack入门——webpack的安装
- Grunt、gulp、webpack、不要听着高大上你就上,试试Codekit?
- webpack
- [Webpack 2] Intro to the Production Webpack Course
- [转]webpack 使用优化指南
- webpack 多entry 配置
- webpack打包压缩工具的使用方法
- webpack es6支持配置
- webPack 使用方便快捷
- webpack loader 列表
- webpack进阶构建项目(一)
- 实用的webpack 配置文件
- webpack学习笔记一(入门)
- 【webpack】使用webpack进行ES6开发
- Webpack傻瓜式指南(未完待续)
- Mac下webpack安装
- webpack系列译文(1)