반응형
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
- opentelemetry
- 카오스 엔지니어링
- CI/CD
- xdp
- Kubernetes 인증
- operator
- opensearch
- kubernetes operator
- Kubernetes
- blue/green
- Kopf
- eBPF
- Continuous Deployment
- CANARY
- gitops
- seldon core
- 오퍼레이터
- nginx ingress
- mlops
- Kubeflow
- Model Serving
- MLflow
- tekton
- Litmus
- serving
- knative
- argocd
- Argo
- Pulumi
- keda
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