UNPKG

less-plugin-remove-antd-global-styles

Version:

This is a less plugin that removes ant-design global styles.

13 lines (9 loc) 286 B
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) }