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
- 라즈베리파이
- 리눅스
- Excel
- PER
- mssql
- 함수
- GIT
- PyQt
- python
- ASP
- ubuntu
- MySQL
- 날짜
- 맛집
- port
- swift
- IOS
- urllib
- flutter
- sqlite
- tensorflow
- javascript
- 유니티
- MS-SQL
- PyQt5
- 다이어트
- node.js
- Unity
- Linux
- pandas
Archives
아미(아름다운미소)
sveltekit 프로젝트 생성 본문
sveltekit 프로젝트 생성
npx sv create my-sveltekit-app
cd my-sveltekit-app
adapter-node 설치(build폴더 생성)
npm install -D @sveltejs/adapter-node
svelte.config.js 수정
import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({ out: 'build' }) // build 폴더가 생성되도록 설정
}
};
export default config;
npm run build
실행
npm run dev
Comments