grunt-cssnextdeprecated

Use tomorrow's CSS syntax, today, using cssnext via Grunt

Usage no npm install needed!

<script type="module">
  import gruntCssnext from 'https://cdn.skypack.dev/grunt-cssnext';
</script>

README

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