-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a47223
commit 99162b6
Showing
5 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*! | ||
* Less - Leaner CSS v3.5.0-beta.2 | ||
* Less - Leaner CSS v3.5.0-beta.3 | ||
* http://lesscss.org | ||
* | ||
* Copyright (c) 2009-2018, Alexis Sellier <[email protected]> | ||
|
@@ -228,11 +228,12 @@ module.exports = function(window, options, logger) { | |
vars = cache && cache.getItem(path + ':vars'); | ||
|
||
modifyVars = modifyVars || {}; | ||
vars = vars || "{}"; // if not set, treat as the JSON representation of an empty object | ||
|
||
if (timestamp && webInfo.lastModified && | ||
(new Date(webInfo.lastModified).valueOf() === | ||
new Date(timestamp).valueOf()) && | ||
(!modifyVars && !vars || JSON.stringify(modifyVars) === vars)) { | ||
JSON.stringify(modifyVars) === vars) { | ||
// Use local copy | ||
return css; | ||
} | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters