From 7180a7e84db84ab135958bc9120c6894fc244645 Mon Sep 17 00:00:00 2001 From: Katsuhiro Ueno Date: Sat, 20 Jul 2024 14:09:47 +0900 Subject: [PATCH] substitute ssg with minissg --- example/benchmark/vite.config.js | 8 ++++---- example/markdown-it/vite.config.js | 4 ++-- example/multilib/vite.config.js | 24 ++++++++++++------------ template/mdx/vite.config.js | 8 ++++---- template/page/vite.config.js | 8 ++++---- template/preact/vite.config.js | 8 ++++---- template/react/vite.config.js | 8 ++++---- template/solid/vite.config.js | 8 ++++---- template/svelte/vite.config.js | 8 ++++---- template/vue/vite.config.js | 8 ++++---- 10 files changed, 46 insertions(+), 46 deletions(-) diff --git a/example/benchmark/vite.config.js b/example/benchmark/vite.config.js index fddcad1..ff0e582 100644 --- a/example/benchmark/vite.config.js +++ b/example/benchmark/vite.config.js @@ -5,8 +5,8 @@ import remarkMdxFrontmatter from 'remark-mdx-frontmatter' import remarkGfm from 'remark-gfm' import remarkSmartypants from 'remark-smartypants' import preact from '@preact/preset-vite' -import ssg from 'vite-plugin-minissg' -import ssgPreact from '@minissg/render-preact' +import minissg from 'vite-plugin-minissg' +import minissgPreact from '@minissg/render-preact' export default defineConfig({ base: '/hoge/', @@ -16,9 +16,9 @@ export default defineConfig({ } }, plugins: [ - ssg({ + minissg({ render: { - '**/*.{jsx,md}': ssgPreact() + '**/*.{jsx,md}': minissgPreact() }, config: { build: { diff --git a/example/markdown-it/vite.config.js b/example/markdown-it/vite.config.js index 7897cf8..52dd924 100644 --- a/example/markdown-it/vite.config.js +++ b/example/markdown-it/vite.config.js @@ -1,5 +1,5 @@ import { defineConfig } from 'vite' -import ssg from 'vite-plugin-minissg' +import minissg from 'vite-plugin-minissg' export default defineConfig({ base: '/hoge/', @@ -9,7 +9,7 @@ export default defineConfig({ } }, plugins: [ - ssg({ + minissg({ config: { build: { minify: true, diff --git a/example/multilib/vite.config.js b/example/multilib/vite.config.js index 5486747..56bf92d 100644 --- a/example/multilib/vite.config.js +++ b/example/multilib/vite.config.js @@ -4,12 +4,12 @@ import react from '@vitejs/plugin-react' import solid from 'vite-plugin-solid' import { svelte, vitePreprocess } from '@sveltejs/vite-plugin-svelte' import vue from '@vitejs/plugin-vue' -import ssg from 'vite-plugin-minissg' -import ssgPreact from '@minissg/render-preact' -import ssgReact from '@minissg/render-react' -import ssgSolid from '@minissg/render-solid' -import ssgSvelte from '@minissg/render-svelte' -import ssgVue from '@minissg/render-vue' +import minissg from 'vite-plugin-minissg' +import minissgPreact from '@minissg/render-preact' +import minissgReact from '@minissg/render-react' +import minissgSolid from '@minissg/render-solid' +import minissgSvelte from '@minissg/render-svelte' +import minissgVue from '@minissg/render-vue' const preactPlugin = () => { const include = /\/preact\/.*\.jsx(?:\?|$)/ @@ -70,13 +70,13 @@ export default defineConfig({ } }, plugins: [ - ssg({ + minissg({ render: { - '**/react/**/*.jsx': ssgReact(), - '**/solid/**/*.jsx': ssgSolid(), - '**/*.jsx': ssgPreact(), - '**/*.svelte': ssgSvelte(), - '**/*.vue': ssgVue() + '**/react/**/*.jsx': minissgReact(), + '**/solid/**/*.jsx': minissgSolid(), + '**/*.jsx': minissgPreact(), + '**/*.svelte': minissgSvelte(), + '**/*.vue': minissgVue() }, plugins: () => [ preactPlugin(), diff --git a/template/mdx/vite.config.js b/template/mdx/vite.config.js index c1e76d6..df0f36b 100644 --- a/template/mdx/vite.config.js +++ b/template/mdx/vite.config.js @@ -3,8 +3,8 @@ import mdx from '@mdx-js/rollup' import remarkFrontmatter from 'remark-frontmatter' import remarkMdxFrontmatter from 'remark-mdx-frontmatter' import preact from '@preact/preset-vite' -import ssg from 'vite-plugin-minissg' -import ssgPreact from '@minissg/render-preact' +import minissg from 'vite-plugin-minissg' +import minissgPreact from '@minissg/render-preact' export default defineConfig({ build: { @@ -13,9 +13,9 @@ export default defineConfig({ } }, plugins: [ - ssg({ + minissg({ render: { - '**/*.jsx': ssgPreact() + '**/*.jsx': minissgPreact() }, plugins: () => [ preact(), diff --git a/template/page/vite.config.js b/template/page/vite.config.js index b86206b..73d934c 100644 --- a/template/page/vite.config.js +++ b/template/page/vite.config.js @@ -3,8 +3,8 @@ import mdx from '@mdx-js/rollup' import remarkFrontmatter from 'remark-frontmatter' import remarkMdxFrontmatter from 'remark-mdx-frontmatter' import preact from '@preact/preset-vite' -import ssg from 'vite-plugin-minissg' -import ssgPreact from '@minissg/render-preact' +import minissg from 'vite-plugin-minissg' +import minissgPreact from '@minissg/render-preact' export default defineConfig({ build: { @@ -13,9 +13,9 @@ export default defineConfig({ } }, plugins: [ - ssg({ + minissg({ render: { - '**/*.jsx': ssgPreact() + '**/*.jsx': minissgPreact() }, plugins: () => [ preact(), diff --git a/template/preact/vite.config.js b/template/preact/vite.config.js index ea74f12..f64b867 100644 --- a/template/preact/vite.config.js +++ b/template/preact/vite.config.js @@ -1,7 +1,7 @@ import { defineConfig } from 'vite' import preact from '@preact/preset-vite' -import ssg from 'vite-plugin-minissg' -import ssgPreact from '@minissg/render-preact' +import minissg from 'vite-plugin-minissg' +import minissgPreact from '@minissg/render-preact' export default defineConfig({ build: { @@ -10,9 +10,9 @@ export default defineConfig({ } }, plugins: [ - ssg({ + minissg({ render: { - '**/*.jsx': ssgPreact() + '**/*.jsx': minissgPreact() }, plugins: () => [preact()] }) diff --git a/template/react/vite.config.js b/template/react/vite.config.js index 6e5249a..2e22e96 100644 --- a/template/react/vite.config.js +++ b/template/react/vite.config.js @@ -1,7 +1,7 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' -import ssg from 'vite-plugin-minissg' -import ssgReact from '@minissg/render-react' +import minissg from 'vite-plugin-minissg' +import minissgReact from '@minissg/render-react' export default defineConfig({ build: { @@ -10,9 +10,9 @@ export default defineConfig({ } }, plugins: [ - ssg({ + minissg({ render: { - '**/*.jsx': ssgReact() + '**/*.jsx': minissgReact() }, plugins: () => [react()] }) diff --git a/template/solid/vite.config.js b/template/solid/vite.config.js index db4f9fe..28b51c8 100644 --- a/template/solid/vite.config.js +++ b/template/solid/vite.config.js @@ -1,7 +1,7 @@ import { defineConfig } from 'vite' import solid from 'vite-plugin-solid' -import ssg from 'vite-plugin-minissg' -import ssgSolid from '@minissg/render-solid' +import minissg from 'vite-plugin-minissg' +import minissgSolid from '@minissg/render-solid' export default defineConfig({ build: { @@ -13,9 +13,9 @@ export default defineConfig({ } }, plugins: [ - ssg({ + minissg({ render: { - '**/*.jsx': ssgSolid() + '**/*.jsx': minissgSolid() }, plugins: () => [solid({ ssr: true, extensions: ['.jsx'] })] }) diff --git a/template/svelte/vite.config.js b/template/svelte/vite.config.js index 3f079f7..98993dc 100644 --- a/template/svelte/vite.config.js +++ b/template/svelte/vite.config.js @@ -1,7 +1,7 @@ import { defineConfig } from 'vite' import { svelte, vitePreprocess } from '@sveltejs/vite-plugin-svelte' -import ssg from 'vite-plugin-minissg' -import ssgSvelte from '@minissg/render-svelte' +import minissg from 'vite-plugin-minissg' +import minissgSvelte from '@minissg/render-svelte' export default defineConfig({ build: { @@ -13,9 +13,9 @@ export default defineConfig({ } }, plugins: [ - ssg({ + minissg({ render: { - '**/*.svelte': ssgSvelte() + '**/*.svelte': minissgSvelte() }, plugins: () => [ svelte({ diff --git a/template/vue/vite.config.js b/template/vue/vite.config.js index b69dd1e..d454bd2 100644 --- a/template/vue/vite.config.js +++ b/template/vue/vite.config.js @@ -1,7 +1,7 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' -import ssg from 'vite-plugin-minissg' -import ssgVue from '@minissg/render-vue' +import minissg from 'vite-plugin-minissg' +import minissgVue from '@minissg/render-vue' export default defineConfig({ build: { @@ -17,9 +17,9 @@ export default defineConfig({ include: ['vue'] }, plugins: [ - ssg({ + minissg({ render: { - '**/*.vue': ssgVue() + '**/*.vue': minissgVue() }, plugins: () => [vue()] })