Skip to content

Commit

Permalink
substitute ssg with minissg
Browse files Browse the repository at this point in the history
  • Loading branch information
uenoB committed Jul 20, 2024
1 parent 45bdca1 commit 7180a7e
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 46 deletions.
8 changes: 4 additions & 4 deletions example/benchmark/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/',
Expand All @@ -16,9 +16,9 @@ export default defineConfig({
}
},
plugins: [
ssg({
minissg({
render: {
'**/*.{jsx,md}': ssgPreact()
'**/*.{jsx,md}': minissgPreact()
},
config: {
build: {
Expand Down
4 changes: 2 additions & 2 deletions example/markdown-it/vite.config.js
Original file line number Diff line number Diff line change
@@ -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/',
Expand All @@ -9,7 +9,7 @@ export default defineConfig({
}
},
plugins: [
ssg({
minissg({
config: {
build: {
minify: true,
Expand Down
24 changes: 12 additions & 12 deletions example/multilib/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(?:\?|$)/
Expand Down Expand Up @@ -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(),
Expand Down
8 changes: 4 additions & 4 deletions template/mdx/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -13,9 +13,9 @@ export default defineConfig({
}
},
plugins: [
ssg({
minissg({
render: {
'**/*.jsx': ssgPreact()
'**/*.jsx': minissgPreact()
},
plugins: () => [
preact(),
Expand Down
8 changes: 4 additions & 4 deletions template/page/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -13,9 +13,9 @@ export default defineConfig({
}
},
plugins: [
ssg({
minissg({
render: {
'**/*.jsx': ssgPreact()
'**/*.jsx': minissgPreact()
},
plugins: () => [
preact(),
Expand Down
8 changes: 4 additions & 4 deletions template/preact/vite.config.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand All @@ -10,9 +10,9 @@ export default defineConfig({
}
},
plugins: [
ssg({
minissg({
render: {
'**/*.jsx': ssgPreact()
'**/*.jsx': minissgPreact()
},
plugins: () => [preact()]
})
Expand Down
8 changes: 4 additions & 4 deletions template/react/vite.config.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand All @@ -10,9 +10,9 @@ export default defineConfig({
}
},
plugins: [
ssg({
minissg({
render: {
'**/*.jsx': ssgReact()
'**/*.jsx': minissgReact()
},
plugins: () => [react()]
})
Expand Down
8 changes: 4 additions & 4 deletions template/solid/vite.config.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand All @@ -13,9 +13,9 @@ export default defineConfig({
}
},
plugins: [
ssg({
minissg({
render: {
'**/*.jsx': ssgSolid()
'**/*.jsx': minissgSolid()
},
plugins: () => [solid({ ssr: true, extensions: ['.jsx'] })]
})
Expand Down
8 changes: 4 additions & 4 deletions template/svelte/vite.config.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand All @@ -13,9 +13,9 @@ export default defineConfig({
}
},
plugins: [
ssg({
minissg({
render: {
'**/*.svelte': ssgSvelte()
'**/*.svelte': minissgSvelte()
},
plugins: () => [
svelte({
Expand Down
8 changes: 4 additions & 4 deletions template/vue/vite.config.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand All @@ -17,9 +17,9 @@ export default defineConfig({
include: ['vue']
},
plugins: [
ssg({
minissg({
render: {
'**/*.vue': ssgVue()
'**/*.vue': minissgVue()
},
plugins: () => [vue()]
})
Expand Down

0 comments on commit 7180a7e

Please sign in to comment.