mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
178 lines
3.9 KiB
JavaScript
178 lines
3.9 KiB
JavaScript
import path from 'path'
|
|
|
|
export default {
|
|
mode: 'universal',
|
|
dev: process.env.NODE_ENV !== 'production',
|
|
debug: undefined, // Will be equal to dev if not provided
|
|
test: process.env.NODE_ENV === 'test',
|
|
buildDir: '.nuxt',
|
|
cacheDir: '.cache',
|
|
nuxtDir: path.resolve(__dirname, '../..'),
|
|
nuxtAppDir: path.resolve(__dirname, '../app'),
|
|
modulesDir: ['node_modules'], // ~> relative to options.rootDir
|
|
ignorePrefix: '-',
|
|
ignore: [
|
|
'**/*.test.*'
|
|
],
|
|
extensions: [],
|
|
build: {
|
|
analyze: false,
|
|
profile: process.argv.includes('--profile'),
|
|
splitPages: true,
|
|
maxChunkSize: false,
|
|
extractCSS: false,
|
|
cssSourceMap: undefined,
|
|
ssr: undefined,
|
|
publicPath: '/_nuxt/',
|
|
filenames: {
|
|
app: '[name].[chunkhash].js',
|
|
chunk: '[name].[chunkhash].js',
|
|
css: '[name].[contenthash].css'
|
|
},
|
|
styleResources: {},
|
|
plugins: [],
|
|
babel: {
|
|
babelrc: false
|
|
},
|
|
postcss: {},
|
|
templates: [],
|
|
watch: [],
|
|
devMiddleware: {},
|
|
hotMiddleware: {},
|
|
stats: {
|
|
chunks: false,
|
|
children: false,
|
|
modules: false,
|
|
colors: true,
|
|
excludeAssets: [
|
|
/.map$/,
|
|
/index\..+\.html$/,
|
|
/vue-ssr-client-manifest.json/
|
|
]
|
|
}
|
|
},
|
|
generate: {
|
|
dir: 'dist',
|
|
routes: [],
|
|
concurrency: 500,
|
|
interval: 0,
|
|
subFolders: true,
|
|
fallback: '200.html',
|
|
minify: {
|
|
collapseBooleanAttributes: true,
|
|
collapseWhitespace: false,
|
|
decodeEntities: true,
|
|
minifyCSS: true,
|
|
minifyJS: true,
|
|
processConditionalComments: true,
|
|
removeAttributeQuotes: false,
|
|
removeComments: false,
|
|
removeEmptyAttributes: true,
|
|
removeOptionalTags: true,
|
|
removeRedundantAttributes: true,
|
|
removeScriptTypeAttributes: false,
|
|
removeStyleLinkTypeAttributes: false,
|
|
removeTagWhitespace: false,
|
|
sortAttributes: true,
|
|
sortClassName: false,
|
|
trimCustomFragments: true,
|
|
useShortDoctype: true
|
|
}
|
|
},
|
|
env: {},
|
|
head: {
|
|
meta: [],
|
|
link: [],
|
|
style: [],
|
|
script: []
|
|
},
|
|
plugins: [],
|
|
css: [],
|
|
modules: [],
|
|
layouts: {},
|
|
serverMiddleware: [],
|
|
ErrorPage: null,
|
|
loading: {
|
|
color: 'black',
|
|
failedColor: 'red',
|
|
height: '2px',
|
|
duration: 5000,
|
|
rtl: false
|
|
},
|
|
loadingIndicator: {},
|
|
transition: {
|
|
name: 'page',
|
|
mode: 'out-in',
|
|
appear: false,
|
|
appearClass: 'appear',
|
|
appearActiveClass: 'appear-active',
|
|
appearToClass: 'appear-to'
|
|
},
|
|
layoutTransition: {
|
|
name: 'layout',
|
|
mode: 'out-in'
|
|
},
|
|
dir: {
|
|
assets: 'assets',
|
|
layouts: 'layouts',
|
|
middleware: 'middleware',
|
|
pages: 'pages',
|
|
static: 'static',
|
|
store: 'store'
|
|
},
|
|
router: {
|
|
mode: 'history',
|
|
base: '/',
|
|
routes: [],
|
|
middleware: [],
|
|
linkActiveClass: 'nuxt-link-active',
|
|
linkExactActiveClass: 'nuxt-link-exact-active',
|
|
extendRoutes: null,
|
|
scrollBehavior: null,
|
|
parseQuery: false,
|
|
stringifyQuery: false,
|
|
fallback: false
|
|
},
|
|
render: {
|
|
bundleRenderer: {},
|
|
resourceHints: true,
|
|
ssr: undefined,
|
|
http2: {
|
|
push: false,
|
|
shouldPush: null
|
|
},
|
|
static: {
|
|
prefix: true
|
|
},
|
|
gzip: {
|
|
threshold: 0
|
|
},
|
|
etag: {
|
|
weak: false
|
|
},
|
|
csp: {
|
|
enabled: false,
|
|
hashAlgorithm: 'sha256',
|
|
allowedSources: undefined,
|
|
policies: undefined
|
|
}
|
|
},
|
|
watchers: {
|
|
webpack: {},
|
|
chokidar: {}
|
|
},
|
|
editor: undefined,
|
|
hooks: null,
|
|
messages: {
|
|
error_404: 'This page could not be found',
|
|
server_error: 'Server error',
|
|
nuxtjs: 'Nuxt.js',
|
|
back_to_home: 'Back to the home page',
|
|
server_error_details:
|
|
'An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.',
|
|
client_error: 'Error',
|
|
client_error_details:
|
|
'An error occurred while rendering the page. Check developer tools console for details.'
|
|
}
|
|
}
|