mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 12:52:47 -07:00
fix: improve critical css generation (#770)
This commit is contained in:
@@ -21,12 +21,14 @@ const Postscatchall = createRoute({ component: PostscatchallImport })
|
||||
const IndexRoute = Index.update({
|
||||
path: '/',
|
||||
getParentRoute: () => rootRoute,
|
||||
filePath: '/',
|
||||
})
|
||||
|
||||
const PostscatchallRoute = Postscatchall.update({
|
||||
path: '/posts/[...catch_all]',
|
||||
getParentRoute: () => rootRoute,
|
||||
hasHandler: true,
|
||||
filePath: '/posts/[...catch_all]',
|
||||
})
|
||||
|
||||
// Create and export the route tree
|
||||
|
||||
@@ -21,11 +21,13 @@ const Index = createRoute({ component: IndexImport })
|
||||
const AboutRoute = About.update({
|
||||
path: '/about',
|
||||
getParentRoute: () => rootRoute,
|
||||
filePath: '/about',
|
||||
})
|
||||
|
||||
const IndexRoute = Index.update({
|
||||
path: '/',
|
||||
getParentRoute: () => rootRoute,
|
||||
filePath: '/',
|
||||
})
|
||||
|
||||
// Create and export the route tree
|
||||
|
||||
+6
@@ -36,31 +36,37 @@ const PostsMyPost = createRoute({ component: PostsMyPostImport })
|
||||
|
||||
const PostslayoutRoute = Postslayout.update({
|
||||
getParentRoute: () => rootRoute,
|
||||
filePath: '/posts/__layout',
|
||||
})
|
||||
|
||||
const AboutRoute = About.update({
|
||||
path: '/about',
|
||||
getParentRoute: () => rootRoute,
|
||||
filePath: '/about',
|
||||
})
|
||||
|
||||
const IndexRoute = Index.update({
|
||||
path: '/',
|
||||
getParentRoute: () => rootRoute,
|
||||
filePath: '/',
|
||||
})
|
||||
|
||||
const PostspostRoute = Postspost.update({
|
||||
path: '/posts/[post]',
|
||||
getParentRoute: () => PostslayoutRoute,
|
||||
filePath: '/posts/[post]',
|
||||
})
|
||||
|
||||
const PostsIndexRoute = PostsIndex.update({
|
||||
path: '/posts',
|
||||
getParentRoute: () => PostslayoutRoute,
|
||||
filePath: '/posts/',
|
||||
})
|
||||
|
||||
const PostsMyPostRoute = PostsMyPost.update({
|
||||
path: '/posts/my-post',
|
||||
getParentRoute: () => PostslayoutRoute,
|
||||
filePath: '/posts/my-post',
|
||||
})
|
||||
|
||||
// Create and export the route tree
|
||||
|
||||
@@ -25,16 +25,19 @@ const PostsMyPost = createRoute({ component: PostsMyPostImport })
|
||||
const AboutRoute = About.update({
|
||||
path: '/about',
|
||||
getParentRoute: () => rootRoute,
|
||||
filePath: '/about',
|
||||
})
|
||||
|
||||
const IndexRoute = Index.update({
|
||||
path: '/',
|
||||
getParentRoute: () => rootRoute,
|
||||
filePath: '/',
|
||||
})
|
||||
|
||||
const PostsMyPostRoute = PostsMyPost.update({
|
||||
path: '/posts/my-post',
|
||||
getParentRoute: () => rootRoute,
|
||||
filePath: '/posts/my-post',
|
||||
})
|
||||
|
||||
// Create and export the route tree
|
||||
|
||||
@@ -21,11 +21,13 @@ const Index = createRoute({ component: IndexImport })
|
||||
const AboutRoute = About.update({
|
||||
path: '/about',
|
||||
getParentRoute: () => rootRoute,
|
||||
filePath: '/about',
|
||||
})
|
||||
|
||||
const IndexRoute = Index.update({
|
||||
path: '/',
|
||||
getParentRoute: () => rootRoute,
|
||||
filePath: '/',
|
||||
})
|
||||
|
||||
// Create and export the route tree
|
||||
|
||||
Reference in New Issue
Block a user