Skip to content

Commit 8543d84

Browse files
committed
update remix to vite
1 parent bfe89e9 commit 8543d84

File tree

44 files changed

+452
-1040
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+452
-1040
lines changed
File renamed without changes.

remix/app/blog-posts/welcome.mdx

Lines changed: 0 additions & 18 deletions
This file was deleted.

remix/app/root.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
Links,
3-
LiveReload,
43
Meta,
54
Outlet,
65
Scripts,
@@ -17,7 +16,7 @@ import { getSessionUser } from '~/utils/auth.server'
1716
import { AuthProvider } from '~/state/AuthContext'
1817
import { CartProvider } from '~/state/CartContext'
1918
import { getCart } from '~/utils/cart.server'
20-
import stylesheet from '~/styles/app.css'
19+
import stylesheet from '~/styles/app.css?url'
2120
import type { PropsWithChildren } from 'react'
2221

2322
export const links: LinksFunction = () => [{ rel: 'stylesheet', href: stylesheet }]
@@ -55,7 +54,6 @@ export function Layout({ children }: PropsWithChildren) {
5554
</AuthProvider>
5655
<ScrollRestoration />
5756
<Scripts />
58-
<LiveReload />
5957
</body>
6058
</html>
6159
)

remix/app/routes/blog.$slug.tsx

Lines changed: 0 additions & 29 deletions
This file was deleted.

remix/app/routes/blog._index.tsx

Lines changed: 0 additions & 36 deletions
This file was deleted.

remix/app/utils/blog.server.ts

Lines changed: 0 additions & 102 deletions
This file was deleted.

remix/lessons/01-routes-and-layouts/lecture/root.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react'
1+
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react'
22
import { LinksFunction } from '@remix-run/node'
33
import stylesheet from '~/styles/app.css'
44

@@ -22,7 +22,6 @@ export default function App() {
2222
<Outlet />
2323
<ScrollRestoration />
2424
<Scripts />
25-
<LiveReload />
2625
</body>
2726
</html>
2827
)

remix/lessons/01-routes-and-layouts/practice-final/root.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react'
1+
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react'
22
import { LinksFunction } from '@remix-run/node'
33
import stylesheet from '~/styles/app.css'
44
import { MainLayout } from './components/MainLayout'
@@ -26,7 +26,6 @@ export default function App() {
2626

2727
<ScrollRestoration />
2828
<Scripts />
29-
<LiveReload />
3029
</body>
3130
</html>
3231
)

remix/lessons/01-routes-and-layouts/practice/root.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react'
1+
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react'
22
import { LinksFunction } from '@remix-run/node'
33
import stylesheet from '~/styles/app.css'
44
import { MainLayout } from './components/MainLayout'
@@ -26,7 +26,6 @@ export default function App() {
2626

2727
<ScrollRestoration />
2828
<Scripts />
29-
<LiveReload />
3029
</body>
3130
</html>
3231
)

remix/lessons/02-loaders/lecture/root.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
import {
2-
Links,
3-
LiveReload,
4-
Meta,
5-
Outlet,
6-
Scripts,
7-
ScrollRestoration,
8-
useLoaderData,
9-
} from '@remix-run/react'
1+
import { Links, Meta, Outlet, Scripts, ScrollRestoration, useLoaderData } from '@remix-run/react'
102
import { type LinksFunction, json } from '@remix-run/node'
113
import stylesheet from '~/styles/app.css'
124
import { MainLayout } from './components/MainLayout'
@@ -43,7 +35,6 @@ export default function App() {
4335
</LessonProvider>
4436
<ScrollRestoration />
4537
<Scripts />
46-
<LiveReload />
4738
</body>
4839
</html>
4940
)

0 commit comments

Comments
 (0)