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
|
-
|
|
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
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
|
-
}
|
|
349
|
-
|
|
350
|
-
|
|
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
|
package/src/vite/vue/main.ts
CHANGED
|
@@ -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 {
|