https://github.com/stevenvachon/less-plugin-future-compat
Less.js plugin to avoid conflicts with future CSS features.
https://github.com/stevenvachon/less-plugin-future-compat
css cssnext less less-plugin nodejs
Last synced: 3 months ago
JSON representation
Less.js plugin to avoid conflicts with future CSS features.
- Host: GitHub
- URL: https://github.com/stevenvachon/less-plugin-future-compat
- Owner: stevenvachon
- License: mit
- Created: 2016-01-12T17:58:02.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-08T19:41:29.000Z (over 9 years ago)
- Last Synced: 2025-03-11T12:39:14.890Z (about 1 year ago)
- Topics: css, cssnext, less, less-plugin, nodejs
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# less-plugin-future-compat [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
> Less.js plugin to avoid conflicts with future CSS features.
Less.js will attempt to use its own internal functions such as `color()` and will result in errors preventing you from compiling your code. This library removes those functions so that your future CSS code is compatible and ready for a post-processor.
## Installation
[Node.js](http://nodejs.org/) `>= 4` is required. To install, type this at the command line:
```shell
npm install less-plugin-future-compat
```
## Usage
```js
var futureCompat = require("less-plugin-future-compat");
var options = { plugins: [futureCompat] };
less.render(lessInput, options).then( function(output) {
// Pass through to post-processor
});
```
[npm-image]: https://img.shields.io/npm/v/less-plugin-future-compat.svg
[npm-url]: https://npmjs.org/package/less-plugin-future-compat
[travis-image]: https://img.shields.io/travis/stevenvachon/less-plugin-future-compat.svg
[travis-url]: https://travis-ci.org/stevenvachon/less-plugin-future-compat