mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
433 lines
9.0 KiB
Plaintext
433 lines
9.0 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`config: options should return default nuxt config 1`] = `
|
|
{
|
|
"ErrorPage": null,
|
|
"__normalized__": true,
|
|
"_modules": [
|
|
"@nuxt/components",
|
|
],
|
|
"_nuxtConfigFile": "/var/nuxt/test/nuxt.config.js",
|
|
"_nuxtConfigFiles": [
|
|
"/var/nuxt/test/nuxt.config.js",
|
|
],
|
|
"alias": {
|
|
"@": "/var/nuxt/test",
|
|
"@@": "/var/nuxt/test",
|
|
"assets": "/var/nuxt/test/assets",
|
|
"static": "/var/nuxt/test/static",
|
|
"~": "/var/nuxt/test",
|
|
"~~": "/var/nuxt/test",
|
|
},
|
|
"app": {
|
|
"assetsPath": "/_nuxt/",
|
|
"basePath": "/",
|
|
"cdnURL": null,
|
|
},
|
|
"appTemplatePath": "/var/nuxt/test/.nuxt/views/app.template.html",
|
|
"build": {
|
|
"_publicPath": "/_nuxt/",
|
|
"additionalExtensions": [],
|
|
"aggressiveCodeRemoval": false,
|
|
"analyze": false,
|
|
"babel": {
|
|
"babelrc": false,
|
|
"cacheDirectory": false,
|
|
"configFile": false,
|
|
},
|
|
"cache": false,
|
|
"corejs": "auto",
|
|
"cssSourceMap": false,
|
|
"devMiddleware": {
|
|
"stats": "none",
|
|
},
|
|
"extractCSS": false,
|
|
"filenames": {
|
|
"app": [Function],
|
|
"chunk": [Function],
|
|
"css": [Function],
|
|
"font": [Function],
|
|
"img": [Function],
|
|
"video": [Function],
|
|
},
|
|
"followSymlinks": false,
|
|
"friendlyErrors": true,
|
|
"hardSource": false,
|
|
"hotMiddleware": {},
|
|
"html": {
|
|
"minify": {
|
|
"collapseBooleanAttributes": true,
|
|
"decodeEntities": true,
|
|
"minifyCSS": true,
|
|
"minifyJS": true,
|
|
"processConditionalComments": true,
|
|
"removeEmptyAttributes": true,
|
|
"removeRedundantAttributes": true,
|
|
"trimCustomFragments": true,
|
|
"useShortDoctype": true,
|
|
},
|
|
},
|
|
"indicator": false,
|
|
"loaders": {
|
|
"css": {
|
|
"esModule": false,
|
|
"modules": {
|
|
"compileType": "icss",
|
|
},
|
|
"sourceMap": false,
|
|
},
|
|
"cssModules": {
|
|
"esModule": false,
|
|
"modules": {
|
|
"localIdentName": "[local]_[hash:base64:5]",
|
|
},
|
|
"sourceMap": false,
|
|
},
|
|
"file": {
|
|
"esModule": false,
|
|
},
|
|
"fontUrl": {
|
|
"esModule": false,
|
|
"limit": 1000,
|
|
},
|
|
"imgUrl": {
|
|
"esModule": false,
|
|
"limit": 1000,
|
|
},
|
|
"less": {
|
|
"sourceMap": false,
|
|
},
|
|
"pugPlain": {},
|
|
"sass": {
|
|
"sassOptions": {
|
|
"indentedSyntax": true,
|
|
},
|
|
"sourceMap": false,
|
|
},
|
|
"scss": {
|
|
"sourceMap": false,
|
|
},
|
|
"stylus": {
|
|
"sourceMap": false,
|
|
},
|
|
"vue": {
|
|
"productionMode": true,
|
|
"transformAssetUrls": {
|
|
"embed": "src",
|
|
"object": "src",
|
|
"source": "src",
|
|
"video": "src",
|
|
},
|
|
},
|
|
"vueStyle": {
|
|
"sourceMap": false,
|
|
},
|
|
},
|
|
"loadingScreen": false,
|
|
"optimization": {
|
|
"minimize": true,
|
|
"minimizer": undefined,
|
|
"runtimeChunk": "single",
|
|
"splitChunks": {
|
|
"automaticNameDelimiter": "/",
|
|
"cacheGroups": {},
|
|
"chunks": "all",
|
|
},
|
|
},
|
|
"optimizeCSS": false,
|
|
"parallel": false,
|
|
"plugins": [],
|
|
"postcss": {
|
|
"postcssOptions": {},
|
|
},
|
|
"profile": false,
|
|
"publicPath": "/_nuxt/",
|
|
"quiet": true,
|
|
"serverURLPolyfill": "url",
|
|
"splitChunks": {
|
|
"commons": true,
|
|
"layouts": false,
|
|
"pages": true,
|
|
},
|
|
"ssr": true,
|
|
"standalone": false,
|
|
"stats": false,
|
|
"styleResources": {},
|
|
"template": undefined,
|
|
"templates": [],
|
|
"terser": {},
|
|
"transpile": [],
|
|
"warningIgnoreFilters": [],
|
|
"watch": [],
|
|
},
|
|
"buildDir": "/var/nuxt/test/.nuxt",
|
|
"buildModules": [],
|
|
"cli": {
|
|
"badgeMessages": [],
|
|
"bannerColor": "green",
|
|
},
|
|
"createRequire": [MockFunction],
|
|
"css": [],
|
|
"debug": false,
|
|
"dev": false,
|
|
"dir": {
|
|
"app": "app",
|
|
"assets": "assets",
|
|
"layouts": "layouts",
|
|
"middleware": "middleware",
|
|
"pages": "pages",
|
|
"static": "static",
|
|
"store": "store",
|
|
},
|
|
"editor": undefined,
|
|
"env": {},
|
|
"extendPlugins": null,
|
|
"extensions": [
|
|
"js",
|
|
"mjs",
|
|
],
|
|
"features": {
|
|
"asyncData": true,
|
|
"clientOnline": true,
|
|
"clientPrefetch": true,
|
|
"componentAliases": true,
|
|
"componentClientOnly": true,
|
|
"deprecations": true,
|
|
"fetch": true,
|
|
"layouts": true,
|
|
"meta": true,
|
|
"middleware": true,
|
|
"store": true,
|
|
"transitions": true,
|
|
"validate": true,
|
|
},
|
|
"fetch": {
|
|
"client": true,
|
|
"server": true,
|
|
},
|
|
"generate": {
|
|
"cache": {
|
|
"globbyOptions": {
|
|
"gitignore": true,
|
|
},
|
|
"ignore": [],
|
|
},
|
|
"concurrency": 500,
|
|
"crawler": true,
|
|
"dir": "/var/nuxt/test/dist",
|
|
"exclude": [],
|
|
"fallback": "200.html",
|
|
"ignoreEnv": false,
|
|
"interval": 0,
|
|
"manifest": true,
|
|
"nojekyll": true,
|
|
"routes": [],
|
|
"staticAssets": {
|
|
"base": "/_nuxt/static",
|
|
"dir": "static",
|
|
"version": "x",
|
|
"versionBase": "/_nuxt/static/x",
|
|
},
|
|
"subFolders": true,
|
|
},
|
|
"globalName": "nuxt",
|
|
"globals": {
|
|
"context": [Function],
|
|
"id": [Function],
|
|
"loadedCallback": [Function],
|
|
"nuxt": [Function],
|
|
"pluginPrefix": [Function],
|
|
"readyCallback": [Function],
|
|
},
|
|
"head": {
|
|
"link": [],
|
|
"meta": [],
|
|
"script": [],
|
|
"style": [],
|
|
},
|
|
"hooks": null,
|
|
"ignore": [
|
|
"**/*.test.*",
|
|
"**/*.spec.*",
|
|
"**/-*.*",
|
|
],
|
|
"ignoreOptions": undefined,
|
|
"ignorePrefix": "-",
|
|
"layoutTransition": {
|
|
"mode": "out-in",
|
|
"name": "layout",
|
|
},
|
|
"layouts": {},
|
|
"loading": {
|
|
"color": "black",
|
|
"continuous": false,
|
|
"css": true,
|
|
"duration": 5000,
|
|
"failedColor": "red",
|
|
"height": "2px",
|
|
"rtl": false,
|
|
"throttle": 200,
|
|
},
|
|
"loadingIndicator": {
|
|
"background": "white",
|
|
"color": "black",
|
|
"color2": "#F5F5F5",
|
|
"dev": false,
|
|
"loading": "Loading...",
|
|
"name": "default",
|
|
},
|
|
"messages": {
|
|
"back_to_home": "Back to the home page",
|
|
"client_error": "Error",
|
|
"client_error_details": "An error occurred while rendering the page. Check developer tools console for details.",
|
|
"error_404": "This page could not be found",
|
|
"loading": "Loading...",
|
|
"nuxtjs": "Nuxt",
|
|
"server_error": "Server error",
|
|
"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.",
|
|
},
|
|
"mode": "universal",
|
|
"modern": undefined,
|
|
"modes": {
|
|
"spa": {
|
|
"build": {
|
|
"ssr": false,
|
|
},
|
|
"render": {
|
|
"ssr": false,
|
|
},
|
|
},
|
|
"universal": {
|
|
"build": {
|
|
"ssr": true,
|
|
},
|
|
"render": {
|
|
"ssr": true,
|
|
},
|
|
},
|
|
},
|
|
"modules": [],
|
|
"modulesDir": [
|
|
"/var/nuxt/node_modules",
|
|
"/var/nuxt/test/node_modules",
|
|
],
|
|
"pageTransition": {
|
|
"appear": false,
|
|
"appearActiveClass": "appear-active",
|
|
"appearClass": "appear",
|
|
"appearToClass": "appear-to",
|
|
"mode": "out-in",
|
|
"name": "page",
|
|
},
|
|
"plugins": [],
|
|
"privateRuntimeConfig": {},
|
|
"publicRuntimeConfig": {
|
|
"_app": {
|
|
"assetsPath": "/_nuxt/",
|
|
"basePath": "/",
|
|
"cdnURL": null,
|
|
},
|
|
},
|
|
"render": {
|
|
"bundleRenderer": {
|
|
"runInNewContext": false,
|
|
"shouldPrefetch": [Function],
|
|
"shouldPreload": [Function],
|
|
},
|
|
"compressor": {
|
|
"threshold": 0,
|
|
},
|
|
"crossorigin": undefined,
|
|
"csp": false,
|
|
"dist": {
|
|
"index": false,
|
|
"maxAge": "1y",
|
|
},
|
|
"etag": {
|
|
"weak": false,
|
|
},
|
|
"fallback": {
|
|
"dist": {},
|
|
"static": {
|
|
"handlers": {
|
|
".htm": false,
|
|
".html": false,
|
|
},
|
|
"skipUnknown": true,
|
|
},
|
|
},
|
|
"http2": {
|
|
"push": false,
|
|
"pushAssets": null,
|
|
"shouldPush": null,
|
|
},
|
|
"resourceHints": true,
|
|
"ssr": true,
|
|
"ssrLog": false,
|
|
"static": {
|
|
"prefix": true,
|
|
},
|
|
},
|
|
"rootDir": "/var/nuxt/test",
|
|
"router": {
|
|
"base": "/",
|
|
"extendRoutes": null,
|
|
"fallback": false,
|
|
"linkActiveClass": "nuxt-link-active",
|
|
"linkExactActiveClass": "nuxt-link-exact-active",
|
|
"linkPrefetchedClass": false,
|
|
"middleware": [],
|
|
"mode": "history",
|
|
"parseQuery": false,
|
|
"prefetchLinks": true,
|
|
"prefetchPayloads": true,
|
|
"routeNameSplitter": "-",
|
|
"routes": [],
|
|
"scrollBehavior": null,
|
|
"stringifyQuery": false,
|
|
"trailingSlash": undefined,
|
|
},
|
|
"server": {
|
|
"host": "localhost",
|
|
"https": false,
|
|
"port": 3000,
|
|
"socket": undefined,
|
|
"timing": false,
|
|
},
|
|
"serverMiddleware": [],
|
|
"srcDir": "/var/nuxt/test",
|
|
"ssr": true,
|
|
"styleExtensions": [
|
|
"css",
|
|
"pcss",
|
|
"postcss",
|
|
"styl",
|
|
"stylus",
|
|
"scss",
|
|
"sass",
|
|
"less",
|
|
],
|
|
"target": "server",
|
|
"test": true,
|
|
"vue": {
|
|
"config": {
|
|
"performance": false,
|
|
"silent": true,
|
|
},
|
|
},
|
|
"vueMeta": null,
|
|
"watch": [
|
|
"/var/nuxt/test/nuxt.config.js",
|
|
],
|
|
"watchers": {
|
|
"chokidar": {
|
|
"ignoreInitial": true,
|
|
},
|
|
"rewatchOnRawEvents": undefined,
|
|
"webpack": {
|
|
"aggregateTimeout": 1000,
|
|
},
|
|
},
|
|
}
|
|
`;
|