postcss-cli
Advanced tools
Comparing version 7.0.0 to 7.1.0
@@ -0,1 +1,5 @@ | ||
# 7.1.0 / 2020-01-09 | ||
- Respect `map.annotation` option when set to a string ([#307](https://github.com/postcss/postcss-cli/pull/307)) | ||
# 7.0.0 / 2020-01-07 | ||
@@ -2,0 +6,0 @@ |
@@ -225,3 +225,3 @@ 'use strict' | ||
if (result.map) { | ||
const mapfile = getMapfile(options.to) | ||
const mapfile = getMapfile(options) | ||
tasks.push(fs.outputFile(mapfile, result.map)) | ||
@@ -228,0 +228,0 @@ } |
'use strict' | ||
module.exports = function getMapfile(p) { | ||
return `${p}.map` | ||
const path = require('path') | ||
module.exports = function getMapfile(options) { | ||
if (options.map && typeof options.map.annotation === 'string') { | ||
return `${path.dirname(options.to)}/${options.map.annotation}` | ||
} | ||
return `${options.to}.map` | ||
} |
{ | ||
"name": "postcss-cli", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"description": "CLI for PostCSS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
30624
390