Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit a866fb8

Browse files
author
Jack Leslie
committed
feat: enable src directory
1 parent 6940dcf commit a866fb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class Project {
7676
this.appRoot = path.resolve(appDir)
7777
this.mode = mode
7878
this.config = {
79-
srcDir: '/',
79+
srcDir: existsDirSync(path.join(this.appRoot, '/src/pages')) ? '/src' : '/',
8080
outputDir: '/dist',
8181
baseUrl: '/',
8282
defaultLocale: 'en',

0 commit comments

Comments
 (0)