update build script
Browse files- package.json +1 -1
- src/Home/index.tsx +1 -1
package.json
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
"type": "module",
|
6 |
"scripts": {
|
7 |
"dev": "vite",
|
8 |
-
"build": "tsc -b && vite build",
|
9 |
"preview": "vite preview",
|
10 |
"css:dev": "tailwindcss -i src/input.css -o output/output.css --watch",
|
11 |
"build:css": "tailwindcss -i src/input.css -o output/output.css",
|
|
|
5 |
"type": "module",
|
6 |
"scripts": {
|
7 |
"dev": "vite",
|
8 |
+
"build": "npm run build:css && tsc -b && vite build",
|
9 |
"preview": "vite preview",
|
10 |
"css:dev": "tailwindcss -i src/input.css -o output/output.css --watch",
|
11 |
"build:css": "tailwindcss -i src/input.css -o output/output.css",
|
src/Home/index.tsx
CHANGED
@@ -28,7 +28,7 @@ export default function App() {
|
|
28 |
|
29 |
return (
|
30 |
<main class="w-screen my-24 mx-5">
|
31 |
-
<div class="w-1/2
|
32 |
<button onclick={() => {
|
33 |
start(() => fetchData(textarea?.value as string))
|
34 |
} }>Translate</button>
|
|
|
28 |
|
29 |
return (
|
30 |
<main class="w-screen my-24 mx-5">
|
31 |
+
<div class="w-1/2 py-4 px-2 flex justify-end">
|
32 |
<button onclick={() => {
|
33 |
start(() => fetchData(textarea?.value as string))
|
34 |
} }>Translate</button>
|