vitrify 0.10.1 → 0.10.3

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.
@@ -12,7 +12,8 @@ export const prerender = async ({ outDir, templatePath, manifestPath, entryServe
12
12
  logLevel: 'warn',
13
13
  external: true,
14
14
  inlineFonts: true,
15
- preloadFonts: true
15
+ preloadFonts: true,
16
+ preload: 'swap'
16
17
  });
17
18
  for (const url of paths) {
18
19
  const filename = (url.endsWith('/') ? 'index' : url.replace(/^\//g, '')) + '.html';
package/dist/index.js CHANGED
@@ -276,9 +276,9 @@ export const baseConfig = async ({ ssr, appDir, publicDir, base = '/', command =
276
276
  ...globalSass.map((sass) => `@import '${sass}'`)
277
277
  ].join('\n');
278
278
  }
279
- else if (id === 'vitrify.css') {
280
- return `${globalCss.map((css) => `@import '${css}'`).join('\n')}`;
281
- }
279
+ // else if (id === 'vitrify.css') {
280
+ // return `${globalCss.map((css) => `@import '${css}'`).join('\n')}`
281
+ // }
282
282
  else if (id === 'virtual:vitrify-config') {
283
283
  return `export default ${JSON.stringify(vitrifyConfig)}`;
284
284
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitrify",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "description": "Vite as your Full Stack development tool",
@@ -28,7 +28,8 @@ export const prerender = async ({
28
28
  logLevel: 'warn',
29
29
  external: true,
30
30
  inlineFonts: true,
31
- preloadFonts: true
31
+ preloadFonts: true,
32
+ preload: 'swap'
32
33
  })
33
34
  for (const url of paths) {
34
35
  const filename =
package/src/node/index.ts CHANGED
@@ -345,9 +345,11 @@ export const baseConfig = async ({
345
345
  ),
346
346
  ...globalSass.map((sass) => `@import '${sass}'`)
347
347
  ].join('\n')
348
- } else if (id === 'vitrify.css') {
349
- return `${globalCss.map((css) => `@import '${css}'`).join('\n')}`
350
- } else if (id === 'virtual:vitrify-config') {
348
+ }
349
+ // else if (id === 'vitrify.css') {
350
+ // return `${globalCss.map((css) => `@import '${css}'`).join('\n')}`
351
+ // }
352
+ else if (id === 'virtual:vitrify-config') {
351
353
  return `export default ${JSON.stringify(vitrifyConfig)}`
352
354
  }
353
355
  return null
@@ -1,3 +1,4 @@
1
+ import 'vitrify.sass'
1
2
  import createRouter from 'src/router'
2
3
  import {
3
4
  createSSRApp,
@@ -10,8 +11,6 @@ import {
10
11
  import { onBoot, onMounted } from 'virtual:vitrify-hooks'
11
12
  import routes from 'src/router/routes'
12
13
  import * as staticImports from 'virtual:static-imports'
13
- import 'vitrify.sass'
14
- import 'vitrify.css'
15
14
  import App from 'src/App.vue'
16
15
 
17
16
  interface ssrContext {