import { ConeScaffoldProps } from './type' // When a regex has the global flag set, test() will advance the lastIndex of the regex. export const extCssReg = /\.(css|scss|less)$/i export function isExtCss(filepath: string): boolean { return extCssReg.test(filepath) } export function processCss({ filepath, str, props, }: { filepath: string str: string props: ConeScaffoldProps }): string { const { mobile } = props if (mobile) { str = str.replace('cn-next/index.scss', 'cn-meet-react/dist/meet-react.css') } return str }