grunt-modernizr

2019-10-13

grunt-modernizr是什么

什么是grunt-modernizr,Build out a lean, mean Modernizr machine.

grunt-modernizr使用教程帮助文档

grunt-modernizr

Build Status

NPM

A Gruntwrapper for Modernizr.

Usage

Install this grunt plugin next to your project's [Gruntfile.js][getting_started]:

When you're ready to build, grunt-modernizrwill crawl your project for Modernizr test references and save out a minified, uglified, customized version using only the tests you've used in your JavaScript or (S)CSS.

Getting Started

Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with:

npm install grunt-modernizr --save-dev

Then add this line to your project's Gruntfile.js:

grunt.loadNpmTasks("grunt-modernizr");

Documentation

see customizr">For Full Features & Configuration? → See Customizr

Run the task with grunt modernizr:dist.

Config Options

Add a modernizrconfig object to your Gruntfile.js file. The task supports multiple targets:

modernizr: {
  dist: {
    "parseFiles": true,
    "customTests": [],
    "devFile": "/PATH/TO/modernizr-dev.js",
    "dest": "/PATH/TO/modernizr-output.js",
    "tests": [
      // Tests
    ],
    "options": [
      "setClasses"
    ],
    "uglify": true
  }
}

You can also generate the configuration file online via the modernizr build tool. Just configure your build, click the Build button, and download/copy the Grunt Config.

Available Settings

customizr repositoryfor valid settings.">See the customizr repositoryfor valid settings.

License

Copyright (c) 2016 Richard Herrera Licensed under the MIT license.


上一篇:customizr
下一篇:快来利用 Github 这个功能来创建让自己满意的项目模版吧
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部