Skip to content

Commit e254d6b

Browse files
committed
chore: return old index.hbs for the create-app cli
1 parent 20caf2b commit e254d6b

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

adminforth/commands/createApp/templates/index.ts.hbs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,9 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
7575

7676
const port = 3500;
7777

78-
if (process.env.NODE_ENV === 'development') {
79-
admin.bundleNow({ hotReload: true }).then(() => {
80-
logger.info('Bundling AdminForth SPA done.');
81-
});
82-
}
78+
admin.bundleNow({ hotReload: process.env.NODE_ENV === 'development' }).then(() => {
79+
logger.info('Bundling AdminForth SPA done.');
80+
});
8381

8482
admin.express.serve(app);
8583

0 commit comments

Comments
 (0)