(base: string)
| 9 | ] |
| 10 | |
| 11 | const getConfig = (base: string): InlineConfig => ({ |
| 12 | base, |
| 13 | root: rootDir, |
| 14 | logLevel: 'silent', |
| 15 | server: { port: ports['css/dynamic-import'] }, |
| 16 | preview: { port: ports['css/dynamic-import'] }, |
| 17 | build: { assetsInlineLimit: 0 }, |
| 18 | }) |
| 19 | |
| 20 | async function withBuild(base: string, fn: () => Promise<void>) { |
| 21 | const config = getConfig(base) |