This package has been deprecated

Author message:

cssnext is now postcss-cssnext. grunt-cssnext is deprecated. Use grunt-postcss instead. See postcss-cssnext migration guide http://cssnext.io/postcss/

grunt-cssnext

1.0.0 • Public • Published

grunt-cssnext

Build Status NPM version

Use tomorrow's CSS syntax, today. Via Grunt

Issues with the output should be reported on cssnext issue tracker.

Follow @cssnext to get latest news & join #cssnext on irc.freenode.net if you have any questions.

Install

If you haven't used grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile.js as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:

$ npm install --save-dev grunt-cssnext

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks("grunt-cssnext")

Usage

grunt.initConfig({
  cssnext: {
    options: {
      sourcemap: true
    },
    dist: {
      files: {
        "dist/index.css": "src/index.css"
      }
    }
  }
})
 
grunt.loadNpmTasks("grunt-cssnext")
grunt.registerTask("default", ["cssnext"])

Options

Options are directly passed to cssnext, so checkout cssnext options directly

Note: from & to options are automatically specified using grunt source & dest.


Contributing

Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.

$ git clone https://github.com/cssnext/grunt-cssnext.git
$ git checkout -b patch-1
$ npm install
$ npm test

Changelog

License

Package Sidebar

Install

npm i grunt-cssnext

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • moox