GithubHelp home page GithubHelp logo

isabella232 / grunt-modernizr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from modernizr/grunt-modernizr

0.0 0.0 0.0 746 KB

Build out a lean, mean Modernizr machine.

License: MIT License

JavaScript 98.02% CSS 1.98%

grunt-modernizr's Introduction

grunt-modernizr

Build Status

NPM

A Grunt wrapper for Modernizr.

Usage

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

When you're ready to build, grunt-modernizr will 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

For Full Features & Configuration? โ†’ See Customizr

Run the task with grunt modernizr:dist.

Config Options

Add a modernizr config 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

See the customizr repository for valid settings.

License

Copyright (c) 2020 The Modernizr team Licensed under the MIT license.

grunt-modernizr's People

Contributors

anselmh avatar blmyr avatar cleartribe avatar dependabot[bot] avatar doctyper avatar donaldpipowitch avatar drublic avatar emaildano avatar fhemberger avatar htanjo avatar jorrit avatar jrutheiser avatar karlhorky avatar moox avatar nschonni avatar ogonkov avatar patrickkettner avatar pfac avatar rejas avatar s-hirvonen avatar schleuse avatar scottsmith95 avatar stevemao avatar wheresrhys avatar whymarrh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.