Upgrade to Vite 3

This commit is contained in:
venashial
2022-07-16 16:15:06 -07:00
parent 9c07612274
commit fe415cbd77
8 changed files with 276 additions and 317 deletions

View File

@@ -1,12 +1,8 @@
import { mdsvex } from 'mdsvex'
import mdsvexConfig from './mdsvex.config.js'
import adapter from '@sveltejs/adapter-static'
import examples from 'mdsvexamples/vite'
import sveld from './docs/plugins/sveld.js'
import path from 'path'
import { preprocess, plugins } from './src/config/svelte.js'
import Generator from './src/plugins/generator/index.js'
import precompileIntl from 'svelte-intl-precompile/sveltekit-plugin'
import { preprocess } from './src/config/svelte.js'
/** @type {import('@sveltejs/kit').Config} */
export default {
@@ -27,30 +23,6 @@ export default {
['$stores/account']: path.resolve('./docs/dummyStore.ts'),
},
vite: {
plugins: [
Generator({
gameVersions: true,
openapi: true,
}),
...plugins,
examples,
sveld(),
precompileIntl('locales'),
],
build: {
rollupOptions: {
external: ['/_app/COMPONENT_API.json'],
},
},
server: {
fs: {
allow: ['generated', 'docs'],
},
},
},
files: {
assets: 'docs/static',
hooks: 'docs/hooks',