UNPKG
less-plugin-remove-antd-global-styles
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
This is a less plugin that removes ant-design global styles.
less-plugin-remove-antd-global-styles
/
src
/
utils.ts
13 lines
(9 loc)
•
286 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
path
from
'path'
import
os
from
'os'
export
const
isWindows = os.
platform
() ===
'win32'
export
function
slash
(
p
:
string
):
string
{
return
p.
replace
(
/\\/g
,
'/'
) }
export
function
normalizePath
(
id
:
string
):
string
{
return
path.
posix
.
normalize
(isWindows ?
slash
(id) : id) }