Comparing version 1.6.2 to 1.6.3
@@ -0,1 +1,5 @@ | ||
## 1.6.3 (February 29, 2016) | ||
- add `file` to generated source map since other tools can relay on it in source map transform chain | ||
## 1.6.2 (February 29, 2016) | ||
@@ -2,0 +6,0 @@ |
@@ -67,2 +67,3 @@ var parse = require('./parser'); | ||
var tmp = traslateInternalWithSourceMap(compressedAst); | ||
tmp.map._file = filename; // since other tools can relay on file in source map transform chain | ||
tmp.map.setSourceContent(filename, source); | ||
@@ -69,0 +70,0 @@ return tmp; |
{ | ||
"name": "csso", | ||
"description": "CSSO — CSS optimizer", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"homepage": "https://github.com/css/csso", | ||
@@ -30,4 +30,4 @@ "author": "Sergey Kryzhanovsky <skryzhanovsky@ya.ru> (https://github.com/afelix)", | ||
"rules": { | ||
"no-undef": 1, | ||
"no-unused-vars": [1, {"vars": "all", "args": "after-used"}] | ||
"no-undef": 2, | ||
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}] | ||
} | ||
@@ -34,0 +34,0 @@ }, |
@@ -138,3 +138,3 @@ [![NPM version](https://img.shields.io/npm/v/csso.svg)](https://www.npmjs.com/package/csso) | ||
var SourceMapConsumer = require('source-map').SourceMapConsumer; | ||
var inputSourceMap = fs.readFileSync('path/to/my.map.css', 'utf8'); | ||
var inputSourceMap = fs.readFileSync('path/to/my.css.map', 'utf8'); | ||
@@ -145,5 +145,2 @@ result.map.applySourceMap( | ||
); | ||
// if no input source map you may add source content | ||
result.map.setContent('path/to/my.css', setSourceContent); | ||
``` | ||
@@ -150,0 +147,0 @@ |
Sorry, the diff of this file is too big to display
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
299563
6125
222