반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- CANARY
- xdp
- operator
- opensearch
- serving
- tekton
- kubernetes operator
- 카오스 엔지니어링
- gitops
- Kopf
- nginx ingress
- Kubeflow
- mlops
- Argo
- Continuous Deployment
- Kubernetes
- argocd
- 오퍼레이터
- MLflow
- opentelemetry
- blue/green
- Model Serving
- eBPF
- CI/CD
- keda
- seldon core
- knative
- Pulumi
- Kubernetes 인증
- Litmus
Archives
- Today
- Total
Kubernetes 이야기
Svelte + Vite 본문
반응형
npm create vite@latest
√ Project name: ... test
√ Select a framework: » Svelte
√ Select a variant: » JavaScript
npm install --save svelte-routing
npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
npx tailwindcss init -p
Created Tailwind CSS config file: tailwind.config.cjs
Created PostCSS config file: postcss.config.cjs
tailwind.config.cjs
export default {
plugins: [],
theme: {
extend: {},
},
content: ["./index.html",'./src/**/*.{svelte,js,ts}'], // for unused CSS
variants: {
extend: {},
},
darkMode: false, // or 'media' or 'class'
}
postcss.config.cjs
import tailwind from 'tailwindcss'
import tailwindConfig from './tailwind.config.cjs'
import autoprefixer from 'autoprefixer'
export default {
plugins:[tailwind(tailwindConfig),autoprefixer]
}
vite.config.js
import postcss from './postcss.config.cjs';
import { svelte } from '@sveltejs/vite-plugin-svelte'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
css:{
postcss
}
})
app.css
@tailwind utilities;
@tailwind components;
@tailwind base;
main.js
import './app.css'
기타
npm install sveltestrap
npm install chart.js
npm install @popperjs/core
npm i -D flowbite flowbite-svelte classnames @popperjs/core
export default {
plugins: [
//require('flowbite/plugin')
],
theme: {
extend: {},
},
content: [
'./src/**/*.{html,svelte,js,ts}',
"./node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}",
], // for unused CSS
variants: {
extend: {},
},
darkMode: 'class', // 'false' or 'media' or 'class'
}
반응형
Comments