You've already forked AstralRinth
forked from didirus/AstralRinth
Upgrade to Vite 3
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user