grunt-contrib-less
Advanced tools
Comparing version 1.4.1 to 2.0.0
{ | ||
"name": "grunt-contrib-less", | ||
"description": "Compile LESS files to CSS", | ||
"version": "1.4.1", | ||
"version": "2.0.0", | ||
"author": { | ||
@@ -12,3 +12,3 @@ "name": "Grunt Team", | ||
"engines": { | ||
"node": ">=0.10.0" | ||
"node": ">=6" | ||
}, | ||
@@ -22,11 +22,11 @@ "main": "tasks/less.js", | ||
"chalk": "^1.0.0", | ||
"less": "~2.7.1", | ||
"lodash": "^4.8.2" | ||
"less": "^3.0.4", | ||
"lodash": "^4.17.10" | ||
}, | ||
"devDependencies": { | ||
"grunt": "^1.0.0", | ||
"grunt": "^1.0.2", | ||
"grunt-contrib-clean": "^1.0.0", | ||
"grunt-contrib-internal": "^1.1.0", | ||
"grunt-contrib-internal": "^3.0.0", | ||
"grunt-contrib-jshint": "^1.0.0", | ||
"grunt-contrib-nodeunit": "^1.0.0", | ||
"grunt-contrib-nodeunit": "^2.0.0", | ||
"less-plugin-clean-css": "^1.5.0" | ||
@@ -40,3 +40,3 @@ }, | ||
], | ||
"appveyor_id": "e3aa4d07xe4w4u05" | ||
"appveyor_id": "ho4vr86k30r8un49" | ||
} |
@@ -1,2 +0,2 @@ | ||
# grunt-contrib-less v1.4.1 [![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/e3aa4d07xe4w4u05/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-less/branch/master) | ||
# 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) | ||
@@ -149,3 +149,3 @@ > Compile LESS files to CSS | ||
Type: `Boolean` | ||
Default: false | ||
Default: `false` | ||
@@ -156,3 +156,3 @@ Puts the map (and any less files) as a base64 data uri into the output css file. | ||
Type: `Boolean` | ||
Default: false | ||
Default: `false` | ||
@@ -205,2 +205,3 @@ Puts the less files into the map instead of referencing them. | ||
* 2018-05-25 v2.0.0 Update less to ^3.0.0 | ||
* 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. | ||
@@ -245,2 +246,2 @@ * 2016-07-21 v1.4.0 Update async and less to ~2.7.1. | ||
*This file was generated on Wed Mar 08 2017 11:27:07.* | ||
*This file was generated on Fri May 25 2018 16:31:35.* |
@@ -71,2 +71,10 @@ /* | ||
} | ||
if (typeof sourceMapFilename === 'function') { | ||
try { | ||
sourceMapFilename = sourceMapFilename(destFile); | ||
} catch (e) { | ||
sourceMapFilename = destFile + '.map'; | ||
grunt.fail.warn(wrapError(e, 'Generating sourceMapFilename failed.')); | ||
} | ||
} | ||
grunt.file.write(sourceMapFilename, output.map); | ||
@@ -119,3 +127,9 @@ grunt.verbose.writeln('File ' + chalk.cyan(sourceMapFilename) + ' created.'); | ||
if (options.sourceMap && !options.sourceMapFileInline && !options.sourceMapFilename) { | ||
options.sourceMapFilename = path.basename(destFile) + '.map'; | ||
options.sourceMapFilename = destFile + '.map'; | ||
} else if (options.sourceMap && !options.sourceMapFileInline && typeof options.sourceMapFilename === 'function') { | ||
try { | ||
options.sourceMapFilename = options.sourceMapFilename(destFile); | ||
} catch (e) { | ||
grunt.fail.warn(wrapError(e, 'Generating sourceMapFilename failed.')); | ||
} | ||
} | ||
@@ -131,2 +145,10 @@ | ||
if (typeof options.sourceMapURL === 'function') { | ||
try { | ||
options.sourceMapURL = options.sourceMapURL(destFile); | ||
} catch (e) { | ||
grunt.fail.warn(wrapError(e, 'Generating sourceMapURL failed.')); | ||
} | ||
} | ||
if (typeof options.sourceMap === 'boolean' && options.sourceMap) { | ||
@@ -133,0 +155,0 @@ options.sourceMap = { |
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
21359
188
244
+ Addedcopy-anything@2.0.6(transitive)
+ Addedis-what@3.14.1(transitive)
+ Addedless@3.13.1(transitive)
+ Addedmake-dir@2.1.0(transitive)
+ Addednative-request@1.1.2(transitive)
+ Addedpify@4.0.1(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedtslib@1.14.1(transitive)
- Removedajv@4.11.8(transitive)
- Removedasap@2.0.6(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@0.2.01.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.6.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedboom@2.10.1(transitive)
- Removedcall-bind@1.0.8(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedco@4.6.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removedcryptiles@2.0.5(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddunder-proto@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.0.0(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.1.4(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.6(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhar-schema@1.0.5(transitive)
- Removedhar-validator@4.2.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhawk@3.1.3(transitive)
- Removedhoek@2.16.3(transitive)
- Removedhttp-signature@1.1.1(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisarray@2.0.5(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-stable-stringify@1.1.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsonify@0.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedless@2.7.3(transitive)
- Removedmath-intrinsics@1.0.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedoauth-sign@0.8.2(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedperformance-now@0.2.0(transitive)
- Removedpromise@7.3.1(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedqs@6.4.1(transitive)
- Removedrequest@2.81.0(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedsntp@1.0.9(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstringstream@0.0.6(transitive)
- Removedtough-cookie@2.3.4(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
Updatedless@^3.0.4
Updatedlodash@^4.17.10