Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 05eaa4741a | |||
| c0d5b4697f |
@@ -19,9 +19,17 @@ http:// {
|
||||
reverse_proxy ${BACKEND_URL}
|
||||
}
|
||||
|
||||
@assets path /assets/* /favicon.svg
|
||||
handle @assets {
|
||||
root * /www
|
||||
header Cache-Control "public, max-age=31536000, immutable"
|
||||
file_server
|
||||
}
|
||||
|
||||
handle {
|
||||
root * /www
|
||||
try_files {path} /index.html
|
||||
header Cache-Control "no-store, no-cache, must-revalidate"
|
||||
file_server
|
||||
}
|
||||
|
||||
|
||||
+14
-14
@@ -13,35 +13,35 @@ export default defineConfig({
|
||||
log: true,
|
||||
autoExcludeNodeModules: true,
|
||||
threadPool: true,
|
||||
excludes: [
|
||||
/assets\/rolldown-runtime-.*\.js$/,
|
||||
],
|
||||
options: {
|
||||
compact: true,
|
||||
controlFlowFlattening: true,
|
||||
controlFlowFlatteningThreshold: 1,
|
||||
controlFlowFlattening: false,
|
||||
deadCodeInjection: false,
|
||||
debugProtection: false,
|
||||
debugProtectionInterval: 0,
|
||||
disableConsoleOutput: true,
|
||||
identifierNamesGenerator: 'hexadecimal',
|
||||
ignoreImports: true,
|
||||
numbersToExpressions: true,
|
||||
numbersToExpressions: false,
|
||||
renameGlobals: false,
|
||||
selfDefending: true,
|
||||
selfDefending: false,
|
||||
simplify: true,
|
||||
splitStrings: true,
|
||||
splitStringsChunkLength: 5,
|
||||
splitStrings: false,
|
||||
stringArray: true,
|
||||
stringArrayCallsTransform: true,
|
||||
stringArrayCallsTransformThreshold: 1,
|
||||
stringArrayEncoding: ['base64'],
|
||||
stringArrayCallsTransform: false,
|
||||
stringArrayEncoding: [],
|
||||
stringArrayIndexShift: true,
|
||||
stringArrayRotate: true,
|
||||
stringArrayShuffle: true,
|
||||
stringArrayWrappersChainedCalls: true,
|
||||
stringArrayWrappersCount: 3,
|
||||
stringArrayWrappersParametersMaxCount: 4,
|
||||
stringArrayWrappersType: 'function',
|
||||
stringArrayThreshold: 1,
|
||||
transformObjectKeys: true,
|
||||
stringArrayWrappersCount: 1,
|
||||
stringArrayWrappersParametersMaxCount: 2,
|
||||
stringArrayWrappersType: 'variable',
|
||||
stringArrayThreshold: 0.75,
|
||||
transformObjectKeys: false,
|
||||
unicodeEscapeSequence: false,
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user