grunt-contrib-less
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "grunt-contrib-less", | ||
"description": "Compile LESS files to CSS", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"author": { | ||
@@ -12,3 +12,3 @@ "name": "Grunt Team", | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=10" | ||
}, | ||
@@ -20,14 +20,14 @@ "main": "tasks/less.js", | ||
"dependencies": { | ||
"async": "^2.0.0", | ||
"chalk": "^1.0.0", | ||
"async": "^3.2.0", | ||
"chalk": "^4.1.0", | ||
"less": "^3.0.4", | ||
"lodash": "^4.17.10" | ||
"lodash": "^4.17.20" | ||
}, | ||
"devDependencies": { | ||
"grunt": "^1.0.2", | ||
"grunt-contrib-clean": "^1.0.0", | ||
"grunt-contrib-internal": "^3.0.0", | ||
"grunt-contrib-jshint": "^1.0.0", | ||
"grunt-contrib-nodeunit": "^2.0.0", | ||
"less-plugin-clean-css": "^1.5.0" | ||
"grunt": "^1.3.0", | ||
"grunt-contrib-clean": "^2.0.0", | ||
"grunt-contrib-internal": "^6.0.1", | ||
"grunt-contrib-jshint": "^3.0.0", | ||
"grunt-contrib-nodeunit": "^2.1.0", | ||
"less-plugin-clean-css": "^1.5.1" | ||
}, | ||
@@ -34,0 +34,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
# grunt-contrib-less v2.0.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-less.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-less) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/ho4vr86k30r8un49/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-less/branch/master) | ||
# grunt-contrib-less v2.1.0 [![Build Status](https://github.com/gruntjs/grunt-contrib-less/workflows/Tests/badge.svg)](https://github.com/gruntjs/grunt-contrib-less/actions?workflow=Tests) | ||
@@ -9,3 +9,3 @@ > Compile LESS files to CSS | ||
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command: | ||
If you haven't used [Grunt](https://gruntjs.com/) before, be sure to check out the [Getting Started](https://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](https://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command: | ||
@@ -170,2 +170,9 @@ ```shell | ||
#### process | ||
Type: `Function(content, destinationPath)` | ||
Default: none | ||
Attributes: content, destinationPath | ||
Allows to parse the CSS content to be written to destinationPath to flow through a self defined function. | ||
### Usage Examples | ||
@@ -205,2 +212,3 @@ | ||
* 2021-02-20 v2.1.0 Dependency updates. New process option to modify the written CSS. | ||
* 2018-05-25 v2.0.0 Update less to ^3.0.0 | ||
@@ -246,2 +254,2 @@ * 2017-03-08 v1.4.1 Fix `sourceMappingURL` to be the same as the CSS if not specified, #322. Rethrow the compilation error after printing the message, #315. | ||
*This file was generated on Fri May 25 2018 16:31:35.* | ||
*This file was generated on Sat Feb 20 2021 10:43:07.* |
@@ -93,2 +93,8 @@ /* | ||
var allCss = compiled.join(options.compress ? '' : grunt.util.normalizelf(grunt.util.linefeed)); | ||
// Add a process step to modify the written CSS | ||
if ( typeof options.process === 'function' ) { | ||
allCss = options.process( allCss, destFile ); | ||
} | ||
grunt.file.write(destFile, allCss); | ||
@@ -95,0 +101,0 @@ grunt.verbose.writeln('File ' + chalk.cyan(destFile) + ' created'); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21816
192
252
+ Addedansi-styles@4.3.0(transitive)
+ Addedasync@3.2.6(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedasync@2.6.4(transitive)
- Removedchalk@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
Updatedasync@^3.2.0
Updatedchalk@^4.1.0
Updatedlodash@^4.17.20