feat: 完成客户端联调与通用列表组件
This commit is contained in:
@@ -2,7 +2,9 @@ import assert from 'node:assert/strict'
|
||||
import { readFileSync } from 'node:fs'
|
||||
import test from 'node:test'
|
||||
|
||||
const styles = readFileSync(new URL('./index.css', import.meta.url), 'utf8')
|
||||
const styles = ['foundation.css', 'shell.css', 'index.css']
|
||||
.map((file) => readFileSync(new URL(file, import.meta.url), 'utf8'))
|
||||
.join('\n')
|
||||
const compact = styles.replace(/\/\*[\s\S]*?\*\//g, '').replace(/\s+/g, ' ')
|
||||
const mobileStyles = compact.slice(compact.indexOf('@media (max-width: 720px)'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user