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
- ubuntu
- 다이어트
- javascript
- 라즈베리파이
- swift
- port
- mssql
- 리눅스
- tensorflow
- Linux
- MS-SQL
- Excel
- pandas
- sqlite
- PER
- node.js
- ASP
- PyQt
- MySQL
- PyQt5
- python
- 유니티
- Unity
- 함수
- IOS
- urllib
- flutter
- 날짜
- 맛집
- GIT
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