UNPKG
postcss-cli
Version:
latest (11.0.1)
11.0.1
11.0.0
10.1.0
10.0.0
9.1.0
9.0.2
9.0.1
9.0.0
8.3.1
8.3.0
8.2.0
8.1.0
8.0.0
7.1.2
7.1.1
7.1.0
7.0.0
6.1.3
6.1.2
6.1.1
6.1.0
6.0.1
6.0.0
5.0.1
5.0.0
4.1.1
4.1.0
4.0.0
3.2.0
3.1.1
3.1.0
3.0.0
3.0.0-beta
2.6.0
2.5.2
2.5.1
2.5.0
2.4.1
2.4.0
2.3.3
2.3.2
2.3.1
2.3.0
2.2.0
2.1.1
2.1.0
2.0.0
1.5.0
1.4.0
1.3.1
1.3.0
1.2.1
1.2.0
1.1.0
1.0.0
0.3.0
0.2.0
0.1.0
CLI for PostCSS
github.com/postcss/postcss-cli
postcss/postcss-cli
postcss-cli
/
lib
/
getMapfile.js
8 lines
(7 loc)
•
239 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
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`
}