Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/vite-svelte/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Vite + Svelte + TS</title>
</head>
<body>
<div id="app"></div>
<div id="app" class="text-[red]"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
9 changes: 6 additions & 3 deletions apps/vite-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.0.3",
"@tsconfig/svelte": "^3.0.0",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.22",
"svelte": "^3.55.1",
"svelte-check": "^2.10.3",
"tailwindcss": "^3.3.1",
"tailwindcss-patch": "workspace:*",
"tslib": "^2.5.0",
"typescript": "^4.9.3",
"vite": "^4.2.0",
"tailwindcss-patch": "workspace:*",
"unplugin-tailwindcss-mangle": "workspace:*"
"unplugin-tailwindcss-mangle": "workspace:*",
"vite": "^4.2.0"
}
}
6 changes: 6 additions & 0 deletions apps/vite-svelte/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}
4 changes: 2 additions & 2 deletions apps/vite-svelte/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
</script>

<main>
<div>
<div class="flex justify-between">
<a href="https://vitejs.dev" target="_blank" rel="noreferrer">
<img src={viteLogo} class="logo" alt="Vite Logo" />
</a>
<a href="https://svelte.dev" target="_blank" rel="noreferrer">
<img src={svelteLogo} class="logo svelte" alt="Svelte Logo" />
</a>
</div>
<h1>Vite + Svelte</h1>
<h1 class="text-[40px]">Vite + Svelte</h1>

<div class="card">
<Counter />
Expand Down
4 changes: 4 additions & 0 deletions apps/vite-svelte/src/app.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
Expand Down
8 changes: 8 additions & 0 deletions apps/vite-svelte/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./index.html', './src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {}
},
plugins: []
}
4 changes: 2 additions & 2 deletions apps/vite-svelte/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'

import { vitePlugin as utwm } from 'unplugin-tailwindcss-mangle'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()]
plugins: [svelte(), utwm()]
})
15 changes: 11 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.