summaryrefslogblamecommitdiff
path: root/node_modules/postcss-cli/lib/getMapfile.js
blob: e4d0c93e8d8462274a41d70e049c80ab178b0f87 (plain) (tree)
1
2
3
4
5
6
7






                                                                  
import path from 'path'
export default function getMapfile(options) {
  if (options.map && typeof options.map.annotation === 'string') {
    return `${path.dirname(options.to)}/${options.map.annotation}`
  }
  return `${options.to}.map`
}