Skip to content

Commit

Permalink
[demo]Change svgs file path
Browse files Browse the repository at this point in the history
  • Loading branch information
dufu1991 committed Dec 13, 2024
1 parent cfaeade commit 16b9048
Show file tree
Hide file tree
Showing 132 changed files with 3 additions and 5 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// 修改 ssr 为 false,使其不再使用服务端渲染,而是使用客户端渲染
// Change ssr to false to use client-side rendering instead of server-side rendering
export const ssr = false;

// export const prerender = false;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { Config } from '@sveltejs/kit';

/** @type {import('@sveltejs/kit').Config} */
const config = {
const config: Config = {
// Consult https://svelte.dev/docs/kit/integrations
// for more information about preprocessors
preprocess: vitePreprocess(),
Expand Down
2 changes: 1 addition & 1 deletion packages/stdf/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { defineConfig } from 'vite';
import svgSprite from 'rollup-plugin-stdf-icon';

export default defineConfig({
plugins: [sveltekit(), svgSprite([{ inFile: 'src/assets/symbols', outFile: 'static/fonts', fileName: 'symbol' }])],
plugins: [sveltekit(), svgSprite([{ inFile: 'src/assets/svgs', outFile: 'static/fonts', fileName: 'symbol' }])],
server: { hmr: true, host: '0.0.0.0', port: 8888 }
});

0 comments on commit 16b9048

Please sign in to comment.