【文件属性】:
文件名称:grunt-autopolyfiller:用于 autopolyfiller 的 Grunt 插件
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-15 11:31:24
JavaScript
grunt-autopolyfiller
Autopolyfiller - 精确的 polyfills。 为您的代码自动和最少的 polyfill。
入门
这个插件需要 Grunt。
如果您以前没有使用过 ,请务必查看指南,因为它解释了如何创建以及安装和使用 Grunt 插件。 熟悉该过程后,您可以使用以下命令安装此插件:
npm install grunt-autopolyfiller --save-dev
安装插件后,可以使用以下 JavaScript 代码在 Gruntfile 中启用它:
grunt . loadNpmTasks ( 'grunt-autopolyfiller' ) ;
“autopolyfiller”任务
概述
在项目的 Gruntfile 中,将名为autopolyfiller的部分添加到传递给grunt.initConfig()的数据对象中。
【文件预览】:
grunt-autopolyfiller-master
----.jshintrc(395B)
----.gitignore(37B)
----package.json(1KB)
----.travis.yml(158B)
----Gruntfile.js(3KB)
----README.md(4KB)
----test()
--------test.autopolyfiller.js(2KB)
--------fixtures()
----tasks()
--------autopolyfiller.js(2KB)