simplify
This commit is contained in:
@@ -5,22 +5,22 @@ import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import fs from 'fs';
|
||||
|
||||
export default defineConfig({
|
||||
define: {
|
||||
'process.env.NODE_ENV': process.env.NODE_ENV === 'production' ? '"production"' : '"development"'
|
||||
},
|
||||
server: {
|
||||
watch: {
|
||||
ignored: ['**/debug_page.txt', '**/.ssl/**', '**/docs/**', '**/secrets/**']
|
||||
},
|
||||
https: fs.existsSync('./.ssl/localhost.key') && fs.existsSync('./.ssl/localhost.crt')
|
||||
? {
|
||||
key: fs.readFileSync('./.ssl/localhost.key'),
|
||||
cert: fs.readFileSync('./.ssl/localhost.crt')
|
||||
}
|
||||
: undefined
|
||||
},
|
||||
plugins: [
|
||||
tailwindcss(), sveltekit()],
|
||||
define: {
|
||||
'process.env.NODE_ENV': process.env.NODE_ENV === 'production' ? '"production"' : '"development"'
|
||||
},
|
||||
server: {
|
||||
watch: {
|
||||
ignored: ['**/debug_page.txt', '**/.ssl/**', '**/docs/**', '**/secrets/**']
|
||||
},
|
||||
https:
|
||||
fs.existsSync('./.ssl/localhost.key') && fs.existsSync('./.ssl/localhost.crt')
|
||||
? {
|
||||
key: fs.readFileSync('./.ssl/localhost.key'),
|
||||
cert: fs.readFileSync('./.ssl/localhost.crt')
|
||||
}
|
||||
: undefined
|
||||
},
|
||||
plugins: [tailwindcss(), sveltekit()],
|
||||
test: {
|
||||
expect: { requireAssertions: true },
|
||||
projects: [
|
||||
|
||||
Reference in New Issue
Block a user