📜  苗条的静态适配器 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:38.181000             🧑  作者: Mango

代码示例1
npm i -D @sveltejs/adapter-static@next

then make svelte.config.js look like this:

/** @type {import('@sveltejs/kit').Config} */

import staticAdapter from '@sveltejs/adapter-static'

const config = {
    kit: {
        // hydrate the 
element in src/app.html adapter: staticAdapter(), target: '#svelte' } }; export default config;