less-loader
Advanced tools
Comparing version 2.2.2 to 2.2.3
Changelog | ||
--------- | ||
### 2.2.3 | ||
- Fix missing path information in source map [#73](https://github.com/webpack/less-loader/pull/73) | ||
- Add deprecation warning [#84](https://github.com/webpack/less-loader/issues/84) | ||
### 2.2.2 | ||
@@ -5,0 +10,0 @@ |
16
index.js
@@ -12,2 +12,3 @@ "use strict"; | ||
var path = require("path"); | ||
var util = require("util"); | ||
@@ -63,3 +64,2 @@ var trailingSlash = /[\\\/]$/; | ||
less.render(source, config, function(e, result) { | ||
var parsedMap; | ||
var cb = finalCb; | ||
@@ -72,12 +72,2 @@ // Less is giving us double callbacks sometimes :( | ||
if (result.map) { | ||
parsedMap = JSON.parse(result.map); | ||
parsedMap.sources = parsedMap.sources.map(function(file) { | ||
return path.basename(file); | ||
}); | ||
result.map = JSON.stringify(parsedMap); | ||
} | ||
cb(null, result.css, result.map); | ||
@@ -144,3 +134,3 @@ }); | ||
WebpackFileManager.prototype.loadFileSync = function(filename, currentDirectory, options, environment) { | ||
WebpackFileManager.prototype.loadFileSync = util.deprecate(function(filename, currentDirectory, options, environment) { | ||
var moduleRequest = loaderUtils.urlToRequest(filename, query.root); | ||
@@ -159,3 +149,3 @@ // Less is giving us trailing slashes, but the context should have no trailing slash | ||
}; | ||
}; | ||
}, "We are planing to remove enhanced-require support with the next major release of the less-loader: https://github.com/webpack/less-loader/issues/84"); | ||
@@ -162,0 +152,0 @@ return WebpackFileManager; |
{ | ||
"name": "less-loader", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"author": "Tobias Koppers @sokra", | ||
"description": "less loader module for webpack", | ||
"scripts": { | ||
"test": "mocha -R spec", | ||
"test": "node --no-deprecation node_modules/.bin/_mocha -R spec", | ||
"test-source-map": "webpack --config test/sourceMap/webpack.config.js && open ./test/sourceMap/index.html" | ||
@@ -14,10 +14,10 @@ }, | ||
"devDependencies": { | ||
"css-loader": "^0.9.1", | ||
"css-loader": "^0.23.1", | ||
"enhanced-require": "^0.5.0-beta6", | ||
"extract-text-webpack-plugin": "^0.5.0", | ||
"less": "^2.3.1", | ||
"mocha": "^2.0.1", | ||
"extract-text-webpack-plugin": "^1.0.1", | ||
"less": "^2.6.1", | ||
"mocha": "^2.4.5", | ||
"raw-loader": "^0.5.1", | ||
"should": "^5.2.0", | ||
"webpack": "^1.1.8" | ||
"should": "^8.3.0", | ||
"webpack": "^1.12.14" | ||
}, | ||
@@ -24,0 +24,0 @@ "repository": { |
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
39
111454
153