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