mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(templates): put back args to watch in dev (#4033)
This commit is contained in:
@@ -51,8 +51,7 @@ export function getTemplates(options: ModuleOptions, uiConfig: Record<string, an
|
||||
}
|
||||
|
||||
// For local development, import directly from theme
|
||||
const isUiDev = true
|
||||
if (isUiDev) {
|
||||
if (process.argv.includes('--uiDev')) {
|
||||
const templatePath = fileURLToPath(new URL(`./theme/${kebabCase(component)}`, import.meta.url))
|
||||
return [
|
||||
`import template from ${JSON.stringify(templatePath)}`,
|
||||
|
||||
Reference in New Issue
Block a user