minista 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/build.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,8 +39,8 @@ public # Copy dist
|
|
|
39
39
|
src
|
|
40
40
|
└── pages # Required!
|
|
41
41
|
├── about
|
|
42
|
-
│ └── index.
|
|
43
|
-
└── index.
|
|
42
|
+
│ └── index.jsx
|
|
43
|
+
└── index.jsx
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
<!-- prettier-ignore -->
|
|
@@ -153,9 +153,9 @@ export default defineConfig({
|
|
|
153
153
|
|
|
154
154
|
## Media
|
|
155
155
|
|
|
156
|
-
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
- [Vite と esbuild を組み込み React 製 SSG を再構築 - minista v2](https://zenn.dev/qrac/articles/fbbbe7ccc3bdb1)
|
|
157
|
+
- [React で書ける SSG 改善点と今後について - minista v1](https://zenn.dev/qrac/articles/a24de970148c7e)
|
|
158
|
+
- [React(JSX)で書けるコーディング用 SSG - minista v0](https://zenn.dev/qrac/articles/7537521afcd1bf)
|
|
159
159
|
|
|
160
160
|
## Respect
|
|
161
161
|
|
package/dist/build.js
CHANGED
|
@@ -262,7 +262,7 @@ async function buildViteImporterRoutes(config) {
|
|
|
262
262
|
});
|
|
263
263
|
const replaceFileNameArrayStr = replaceFileNameArray.join("\n ");
|
|
264
264
|
const template = `export const getRoutes = () => {
|
|
265
|
-
const ROUTES = import.meta.globEager("/${pagesDir}
|
|
265
|
+
const ROUTES = import.meta.globEager("/${pagesDir}**/*.{${pagesExtStr}}")
|
|
266
266
|
const routes = Object.keys(ROUTES).map((route) => {
|
|
267
267
|
const routePath = route
|
|
268
268
|
${replacePagesStr}
|