mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 18:34:50 +00:00
30 lines
789 B
TypeScript
30 lines
789 B
TypeScript
|
import { resolve } from 'path'
|
||
|
import { joinURL } from 'ufo'
|
||
|
|
||
|
export default {
|
||
|
dir: {
|
||
|
$resolve: (val = 'dist', get) => resolve(get('rootDir'), val)
|
||
|
},
|
||
|
routes: [],
|
||
|
exclude: [],
|
||
|
concurrency: 500,
|
||
|
interval: 0,
|
||
|
subFolders: true,
|
||
|
fallback: { $resolve: val => val === true ? '400.html' : (val || '200.html') },
|
||
|
crawler: true,
|
||
|
manifest: true,
|
||
|
nojekyll: true,
|
||
|
cache: {
|
||
|
ignore: [],
|
||
|
globbyOptions: {
|
||
|
gitignore: true
|
||
|
}
|
||
|
},
|
||
|
staticAssets: {
|
||
|
dir: 'static',
|
||
|
base: { $resolve: (val, get) => val || joinURL(get('app.assetsPath'), get('generate.dir')) },
|
||
|
versionBase: { $resolve: (val, get) => val || joinURL(get('generate.base'), get('generate.version')) },
|
||
|
version: { $resolve: val => val || (String(Math.round(Date.now() / 1000))) }
|
||
|
}
|
||
|
}
|