Skip to content

Commit

Permalink
chore: configure rules for static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomeowww committed Dec 2, 2024
1 parent 440bb7c commit 6f6668a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 48 deletions.
19 changes: 0 additions & 19 deletions Dockerfile

This file was deleted.

69 changes: 40 additions & 29 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,8 @@ export default defineNuxtConfig({

ssr: false,

experimental: {
// when using generate, payload js assets included in sw pre-cache manifest
// but missing on offline, disabling extraction it until fixed
payloadExtraction: false,
renderJsonPayloads: true,
typedPages: true,
},

css: [
'@unocss/reset/tailwind.css',
],

colorMode: {
classSuffix: '',
},

nitro: {
esbuild: {
options: {
target: 'esnext',
},
},
experimental: {
websocket: true,
},
devtools: {
enabled: true,
},

app: {
Expand All @@ -66,15 +43,51 @@ export default defineNuxtConfig({
},
},

devtools: {
enabled: true,
css: [
'@unocss/reset/tailwind.css',
],

colorMode: {
classSuffix: '',
},

features: {
// For UnoCSS
inlineStyles: false,
},

experimental: {
// when using generate, payload js assets included in sw pre-cache manifest
// but missing on offline, disabling extraction it until fixed
payloadExtraction: false,
renderJsonPayloads: true,
typedPages: true,
},

compatibilityDate: '2024-12-02',

nitro: {
esbuild: {
options: {
target: 'esnext',
},
},
experimental: {
websocket: true,
},
rollupConfig: {

},
routeRules: {
'/assets/js/CubismSdkForWeb-5-r.1/*': {
static: true,
},
'/assets/live2d/models/*': {
static: true,
},
},
},

vite: {
plugins: [
{
Expand Down Expand Up @@ -157,6 +170,4 @@ export default defineNuxtConfig({
},
},
},

compatibilityDate: '2024-12-02',
})

0 comments on commit 6f6668a

Please sign in to comment.