Nuxt/packages/config/test/__snapshots__/options.test.js.snap

433 lines
9.0 KiB
Plaintext
Raw Normal View History

2019-01-14 17:40:10 +00:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`config: options should return default nuxt config 1`] = `
2023-04-25 21:17:00 +00:00
{
2019-01-14 17:40:10 +00:00
"ErrorPage": null,
"__normalized__": true,
2023-04-25 21:17:00 +00:00
"_modules": [
2020-06-03 19:34:10 +00:00
"@nuxt/components",
],
2019-01-14 19:47:00 +00:00
"_nuxtConfigFile": "/var/nuxt/test/nuxt.config.js",
2023-04-25 21:17:00 +00:00
"_nuxtConfigFiles": [
"/var/nuxt/test/nuxt.config.js",
],
2023-04-25 21:17:00 +00:00
"alias": {
2019-05-06 13:59:37 +00:00
"@": "/var/nuxt/test",
"@@": "/var/nuxt/test",
"assets": "/var/nuxt/test/assets",
"static": "/var/nuxt/test/static",
"~": "/var/nuxt/test",
"~~": "/var/nuxt/test",
},
2023-04-25 21:17:00 +00:00
"app": {
"assetsPath": "/_nuxt/",
"basePath": "/",
"cdnURL": null,
},
2019-01-14 19:47:00 +00:00
"appTemplatePath": "/var/nuxt/test/.nuxt/views/app.template.html",
2023-04-25 21:17:00 +00:00
"build": {
2019-01-14 17:40:10 +00:00
"_publicPath": "/_nuxt/",
2023-04-25 21:17:00 +00:00
"additionalExtensions": [],
"aggressiveCodeRemoval": false,
2019-01-14 17:40:10 +00:00
"analyze": false,
2023-04-25 21:17:00 +00:00
"babel": {
2019-01-14 17:40:10 +00:00
"babelrc": false,
"cacheDirectory": false,
"configFile": false,
2019-01-14 17:40:10 +00:00
},
"cache": false,
"corejs": "auto",
2019-01-14 17:40:10 +00:00
"cssSourceMap": false,
2023-04-25 21:17:00 +00:00
"devMiddleware": {
"stats": "none",
},
2019-01-14 17:40:10 +00:00
"extractCSS": false,
2023-04-25 21:17:00 +00:00
"filenames": {
2019-01-14 17:40:10 +00:00
"app": [Function],
"chunk": [Function],
"css": [Function],
"font": [Function],
"img": [Function],
"video": [Function],
},
"followSymlinks": false,
2019-01-14 17:40:10 +00:00
"friendlyErrors": true,
"hardSource": false,
2023-04-25 21:17:00 +00:00
"hotMiddleware": {},
"html": {
"minify": {
2019-01-14 17:40:10 +00:00
"collapseBooleanAttributes": true,
"decodeEntities": true,
"minifyCSS": true,
"minifyJS": true,
"processConditionalComments": true,
"removeEmptyAttributes": true,
"removeRedundantAttributes": true,
"trimCustomFragments": true,
"useShortDoctype": true,
},
},
"indicator": false,
2023-04-25 21:17:00 +00:00
"loaders": {
"css": {
"esModule": false,
2023-04-25 21:17:00 +00:00
"modules": {
"compileType": "icss",
},
2019-01-14 17:40:10 +00:00
"sourceMap": false,
},
2023-04-25 21:17:00 +00:00
"cssModules": {
"esModule": false,
2023-04-25 21:17:00 +00:00
"modules": {
2019-06-15 10:13:05 +00:00
"localIdentName": "[local]_[hash:base64:5]",
},
2019-01-14 17:40:10 +00:00
"sourceMap": false,
},
2023-04-25 21:17:00 +00:00
"file": {
"esModule": false,
},
2023-04-25 21:17:00 +00:00
"fontUrl": {
"esModule": false,
2019-01-14 17:40:10 +00:00
"limit": 1000,
},
2023-04-25 21:17:00 +00:00
"imgUrl": {
"esModule": false,
2019-01-14 17:40:10 +00:00
"limit": 1000,
},
2023-04-25 21:17:00 +00:00
"less": {
2019-01-14 17:40:10 +00:00
"sourceMap": false,
},
2023-04-25 21:17:00 +00:00
"pugPlain": {},
"sass": {
"sassOptions": {
"indentedSyntax": true,
},
2019-01-14 17:40:10 +00:00
"sourceMap": false,
},
2023-04-25 21:17:00 +00:00
"scss": {
2019-01-14 17:40:10 +00:00
"sourceMap": false,
},
2023-04-25 21:17:00 +00:00
"stylus": {
2019-01-14 17:40:10 +00:00
"sourceMap": false,
},
2023-04-25 21:17:00 +00:00
"vue": {
2019-01-14 17:40:10 +00:00
"productionMode": true,
2023-04-25 21:17:00 +00:00
"transformAssetUrls": {
2019-01-14 17:40:10 +00:00
"embed": "src",
"object": "src",
"source": "src",
"video": "src",
},
},
2023-04-25 21:17:00 +00:00
"vueStyle": {
2019-01-14 17:40:10 +00:00
"sourceMap": false,
},
},
"loadingScreen": false,
2023-04-25 21:17:00 +00:00
"optimization": {
2019-01-14 17:40:10 +00:00
"minimize": true,
"minimizer": undefined,
"runtimeChunk": "single",
2023-04-25 21:17:00 +00:00
"splitChunks": {
"automaticNameDelimiter": "/",
2023-04-25 21:17:00 +00:00
"cacheGroups": {},
2019-01-14 17:40:10 +00:00
"chunks": "all",
},
},
"optimizeCSS": false,
"parallel": false,
2023-04-25 21:17:00 +00:00
"plugins": [],
"postcss": {
"postcssOptions": {},
2019-01-14 17:40:10 +00:00
},
"profile": false,
"publicPath": "/_nuxt/",
"quiet": true,
"serverURLPolyfill": "url",
2023-04-25 21:17:00 +00:00
"splitChunks": {
2019-01-14 17:40:10 +00:00
"commons": true,
"layouts": false,
"pages": true,
},
"ssr": true,
"standalone": false,
"stats": false,
2023-04-25 21:17:00 +00:00
"styleResources": {},
2019-01-14 17:40:10 +00:00
"template": undefined,
2023-04-25 21:17:00 +00:00
"templates": [],
"terser": {},
"transpile": [],
"warningIgnoreFilters": [],
"watch": [],
2019-01-14 17:40:10 +00:00
},
2019-01-14 19:47:00 +00:00
"buildDir": "/var/nuxt/test/.nuxt",
2023-04-25 21:17:00 +00:00
"buildModules": [],
"cli": {
"badgeMessages": [],
"bannerColor": "green",
2019-01-14 17:40:10 +00:00
},
"createRequire": [MockFunction],
2023-04-25 21:17:00 +00:00
"css": [],
2019-01-14 17:40:10 +00:00
"debug": false,
"dev": false,
2023-04-25 21:17:00 +00:00
"dir": {
"app": "app",
2019-01-14 17:40:10 +00:00
"assets": "assets",
"layouts": "layouts",
"middleware": "middleware",
"pages": "pages",
"static": "static",
"store": "store",
},
"editor": undefined,
2023-04-25 21:17:00 +00:00
"env": {},
"extendPlugins": null,
2023-04-25 21:17:00 +00:00
"extensions": [
2019-01-14 17:40:10 +00:00
"js",
"mjs",
],
2023-04-25 21:17:00 +00:00
"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,
},
2023-04-25 21:17:00 +00:00
"fetch": {
"client": true,
"server": true,
},
2023-04-25 21:17:00 +00:00
"generate": {
"cache": {
"globbyOptions": {
"gitignore": true,
},
2023-04-25 21:17:00 +00:00
"ignore": [],
},
2019-01-14 17:40:10 +00:00
"concurrency": 500,
feat: options.target and full-static export (#6159) * feat: add options.target * fix(lint): lint * fix(test): update snapshots * fix(builder): default value for target * fix(test): fix test * fix(test): test fixing * fix: use this.options.target * fix: final test * Update packages/vue-renderer/src/renderer.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: Add target option and update banner * fix(lint): fix * feat: Add warning when using serverMiddleware in static target * chore(utils): add TARGETS and MODES as constants * hotfix: lint * chore(module): add filename as alias of fileName * feat: introducing nuxt export and router/routes.json * hotfix: Fix the linting lord * chore(core): add comment for filename vs fileName * fix: use targets constant * chore: remove warning * fix: unit testing * wip: refactor and use TARGETS * fix: lint * feat: add target as alias for first arg value * fix: generate only for SPA * chore: explain to use nuxt static X * fix: render SPA fallback on redirect for static target * fix: lint issue * fix: only target is useful for now * wip * wip: nuxt static export is looking good * Update packages/generator/src/generator.js Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com> * Update packages/cli/src/options/common.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: add options.target * fix(lint): lint * fix(test): update snapshots * fix(builder): default value for target * fix(test): fix test * fix(test): test fixing * fix: use this.options.target * fix: final test * Update packages/vue-renderer/src/renderer.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: Add target option and update banner * fix(lint): fix * feat: Add warning when using serverMiddleware in static target * chore(utils): add TARGETS and MODES as constants * hotfix: lint * chore(module): add filename as alias of fileName * feat: introducing nuxt export and router/routes.json * hotfix: Fix the linting lord * chore(core): add comment for filename vs fileName * fix: use targets constant * chore: remove warning * fix: unit testing * wip: refactor and use TARGETS * fix: lint * feat: add target as alias for first arg value * chore: explain to use nuxt static X * fix: render SPA fallback on redirect for static target * fix: lint issue * fix: only target is useful for now * wip * wip: nuxt static export is looking good * Update packages/generator/src/generator.js Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com> * Update packages/cli/src/options/common.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * fix: duplicate imports * chore: don't server render if an error happens on static target * test: update unit and add export * lint: fix * lint: fix * fix: e2e test * fix: fallback only for static target * fix: dev test * feat: add generate.crawler * fix: full static is when generate.static is given * chore: improvements * fix: Add isFullStatic in nuxt/config.json * feat: handle fetch for full static * feat: router.prefetchPayloads for full static * chore: use fetch in async-data example * fix: add target only if given * fix: use created to have access to props in fetchOnServer * chore: add console.error in dev for easy debugging * feat: payload smart pre-fetching * fix: remove alias for target * fix: increment payloadFetchIndex is static set to false * chore: lint * chore: add serve command * chore: rename universal to server-side * fix: handle payloadPath on SPA fallback * fix: lint * chore lint again * feat: handle spa fallback * feat: support string for exclude * fix: fallback only if no extension or html * chore: use JSON.stringify() for static target * chore: lint again, dammit * chore: fix tests and remove too early return * fix: early return only for server target * fix: update tests * fix: unit tests * chore: add ssr option * chore: add logic for ssr option * fix: #6682 * chore(dx): add next command to run * fix: lint * fix: tests * chore: keep old behaviour for nuxt build in spa * fix: test again, oh boy * fix: alright this is good now * chore: add comment for spa fallback * chore: move routes.json to dot nuxt dir * chore: simplify check for promise * chore: unique lock id * chore: refactor isFullStatic * fix: dont set default in build context * chore: add test for serve * chore: update tests * hotfix: lint tests * chore(dx): improve message for bundling * feat: js payload extraction with jsonp * fix: keep serialized session script for legacy generate * fix: call to setPagePayload from fetchPayload * use devalue for payload chunks * feat: add initial load state chunk * feat: preload payload and state scripts * fix(vue-app): don't re-render the app if trailing slash on SSG * hotfix: remove console.log * chore(dx): add deploy infos for nuxt export Co-authored-by: Pooya Parsa <pyapar@gmail.com> * chore: handle fetching payload.js for nuxt state * chore(dx): error when using nuxt generate and static * chore: remove static option for clarity * chore: remove serverless target * hotfix: lint * hotfix: unit tests * chore: update legacy js resource * chore: remove query params from url in static target * fix: use globalName and urlJoin * chore: typo * feat: previewMode 👀 * chore: rename to enablePreview * fix: wait next tick to avoid error on spa * chore: try 1 sec * hotfix: test only for linux, wtf azure * refactor: static assets - generalize logic for modules need emit export static assets - allow customization for version, dir and base - serialization logic is only in ssr now * feat: smart state chunk creates * fix(client): ignore payload load error * perf: avoide payload loading for spa initial * perf: avoid loading failed chunks again * chore(cli): add simple compression for nuxt serve * test: update snapshots * fix version snapshot * fix(generator): set staticAssetsBase on context only for full static * fix tests * fix: honor shouldHashCspScriptSrc * chore(dx): add log for client-side fallback creation Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com> Co-authored-by: Alexander Lichter <manniL@gmx.net> Co-authored-by: Pooya Parsa <pooya@pi0.ir> Co-authored-by: Devon Rueckner <indirectlylit@users.noreply.github.com> Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-05-07 19:08:01 +00:00
"crawler": true,
2019-01-14 19:47:00 +00:00
"dir": "/var/nuxt/test/dist",
2023-04-25 21:17:00 +00:00
"exclude": [],
2019-01-14 17:40:10 +00:00
"fallback": "200.html",
"ignoreEnv": false,
2019-01-14 17:40:10 +00:00
"interval": 0,
"manifest": true,
"nojekyll": true,
2023-04-25 21:17:00 +00:00
"routes": [],
"staticAssets": {
feat: options.target and full-static export (#6159) * feat: add options.target * fix(lint): lint * fix(test): update snapshots * fix(builder): default value for target * fix(test): fix test * fix(test): test fixing * fix: use this.options.target * fix: final test * Update packages/vue-renderer/src/renderer.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: Add target option and update banner * fix(lint): fix * feat: Add warning when using serverMiddleware in static target * chore(utils): add TARGETS and MODES as constants * hotfix: lint * chore(module): add filename as alias of fileName * feat: introducing nuxt export and router/routes.json * hotfix: Fix the linting lord * chore(core): add comment for filename vs fileName * fix: use targets constant * chore: remove warning * fix: unit testing * wip: refactor and use TARGETS * fix: lint * feat: add target as alias for first arg value * fix: generate only for SPA * chore: explain to use nuxt static X * fix: render SPA fallback on redirect for static target * fix: lint issue * fix: only target is useful for now * wip * wip: nuxt static export is looking good * Update packages/generator/src/generator.js Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com> * Update packages/cli/src/options/common.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: add options.target * fix(lint): lint * fix(test): update snapshots * fix(builder): default value for target * fix(test): fix test * fix(test): test fixing * fix: use this.options.target * fix: final test * Update packages/vue-renderer/src/renderer.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: Add target option and update banner * fix(lint): fix * feat: Add warning when using serverMiddleware in static target * chore(utils): add TARGETS and MODES as constants * hotfix: lint * chore(module): add filename as alias of fileName * feat: introducing nuxt export and router/routes.json * hotfix: Fix the linting lord * chore(core): add comment for filename vs fileName * fix: use targets constant * chore: remove warning * fix: unit testing * wip: refactor and use TARGETS * fix: lint * feat: add target as alias for first arg value * chore: explain to use nuxt static X * fix: render SPA fallback on redirect for static target * fix: lint issue * fix: only target is useful for now * wip * wip: nuxt static export is looking good * Update packages/generator/src/generator.js Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com> * Update packages/cli/src/options/common.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * fix: duplicate imports * chore: don't server render if an error happens on static target * test: update unit and add export * lint: fix * lint: fix * fix: e2e test * fix: fallback only for static target * fix: dev test * feat: add generate.crawler * fix: full static is when generate.static is given * chore: improvements * fix: Add isFullStatic in nuxt/config.json * feat: handle fetch for full static * feat: router.prefetchPayloads for full static * chore: use fetch in async-data example * fix: add target only if given * fix: use created to have access to props in fetchOnServer * chore: add console.error in dev for easy debugging * feat: payload smart pre-fetching * fix: remove alias for target * fix: increment payloadFetchIndex is static set to false * chore: lint * chore: add serve command * chore: rename universal to server-side * fix: handle payloadPath on SPA fallback * fix: lint * chore lint again * feat: handle spa fallback * feat: support string for exclude * fix: fallback only if no extension or html * chore: use JSON.stringify() for static target * chore: lint again, dammit * chore: fix tests and remove too early return * fix: early return only for server target * fix: update tests * fix: unit tests * chore: add ssr option * chore: add logic for ssr option * fix: #6682 * chore(dx): add next command to run * fix: lint * fix: tests * chore: keep old behaviour for nuxt build in spa * fix: test again, oh boy * fix: alright this is good now * chore: add comment for spa fallback * chore: move routes.json to dot nuxt dir * chore: simplify check for promise * chore: unique lock id * chore: refactor isFullStatic * fix: dont set default in build context * chore: add test for serve * chore: update tests * hotfix: lint tests * chore(dx): improve message for bundling * feat: js payload extraction with jsonp * fix: keep serialized session script for legacy generate * fix: call to setPagePayload from fetchPayload * use devalue for payload chunks * feat: add initial load state chunk * feat: preload payload and state scripts * fix(vue-app): don't re-render the app if trailing slash on SSG * hotfix: remove console.log * chore(dx): add deploy infos for nuxt export Co-authored-by: Pooya Parsa <pyapar@gmail.com> * chore: handle fetching payload.js for nuxt state * chore(dx): error when using nuxt generate and static * chore: remove static option for clarity * chore: remove serverless target * hotfix: lint * hotfix: unit tests * chore: update legacy js resource * chore: remove query params from url in static target * fix: use globalName and urlJoin * chore: typo * feat: previewMode 👀 * chore: rename to enablePreview * fix: wait next tick to avoid error on spa * chore: try 1 sec * hotfix: test only for linux, wtf azure * refactor: static assets - generalize logic for modules need emit export static assets - allow customization for version, dir and base - serialization logic is only in ssr now * feat: smart state chunk creates * fix(client): ignore payload load error * perf: avoide payload loading for spa initial * perf: avoid loading failed chunks again * chore(cli): add simple compression for nuxt serve * test: update snapshots * fix version snapshot * fix(generator): set staticAssetsBase on context only for full static * fix tests * fix: honor shouldHashCspScriptSrc * chore(dx): add log for client-side fallback creation Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com> Co-authored-by: Alexander Lichter <manniL@gmx.net> Co-authored-by: Pooya Parsa <pooya@pi0.ir> Co-authored-by: Devon Rueckner <indirectlylit@users.noreply.github.com> Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-05-07 19:08:01 +00:00
"base": "/_nuxt/static",
"dir": "static",
"version": "x",
"versionBase": "/_nuxt/static/x",
},
2019-01-14 17:40:10 +00:00
"subFolders": true,
},
"globalName": "nuxt",
2023-04-25 21:17:00 +00:00
"globals": {
2019-01-14 17:40:10 +00:00
"context": [Function],
"id": [Function],
"loadedCallback": [Function],
"nuxt": [Function],
"pluginPrefix": [Function],
"readyCallback": [Function],
},
2023-04-25 21:17:00 +00:00
"head": {
"link": [],
"meta": [],
"script": [],
"style": [],
2019-01-14 17:40:10 +00:00
},
"hooks": null,
2023-04-25 21:17:00 +00:00
"ignore": [
2019-01-14 17:40:10 +00:00
"**/*.test.*",
"**/*.spec.*",
"**/-*.*",
],
"ignoreOptions": undefined,
2019-01-14 17:40:10 +00:00
"ignorePrefix": "-",
2023-04-25 21:17:00 +00:00
"layoutTransition": {
2019-01-14 17:40:10 +00:00
"mode": "out-in",
"name": "layout",
},
2023-04-25 21:17:00 +00:00
"layouts": {},
"loading": {
2019-01-14 17:40:10 +00:00
"color": "black",
"continuous": false,
"css": true,
"duration": 5000,
"failedColor": "red",
"height": "2px",
"rtl": false,
"throttle": 200,
},
2023-04-25 21:17:00 +00:00
"loadingIndicator": {
2019-01-14 17:40:10 +00:00
"background": "white",
"color": "black",
"color2": "#F5F5F5",
"dev": false,
"loading": "Loading...",
"name": "default",
},
2023-04-25 21:17:00 +00:00
"messages": {
2019-01-14 17:40:10 +00:00
"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...",
2020-11-30 22:44:04 +00:00
"nuxtjs": "Nuxt",
2019-01-14 17:40:10 +00:00
"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,
2023-04-25 21:17:00 +00:00
"modes": {
"spa": {
"build": {
2019-01-14 17:40:10 +00:00
"ssr": false,
},
2023-04-25 21:17:00 +00:00
"render": {
2019-01-14 17:40:10 +00:00
"ssr": false,
},
},
2023-04-25 21:17:00 +00:00
"universal": {
"build": {
2019-01-14 17:40:10 +00:00
"ssr": true,
},
2023-04-25 21:17:00 +00:00
"render": {
2019-01-14 17:40:10 +00:00
"ssr": true,
},
},
},
2023-04-25 21:17:00 +00:00
"modules": [],
"modulesDir": [
2019-01-14 20:31:39 +00:00
"/var/nuxt/node_modules",
"/var/nuxt/test/node_modules",
],
2023-04-25 21:17:00 +00:00
"pageTransition": {
"appear": false,
"appearActiveClass": "appear-active",
"appearClass": "appear",
"appearToClass": "appear-to",
"mode": "out-in",
"name": "page",
},
2023-04-25 21:17:00 +00:00
"plugins": [],
"privateRuntimeConfig": {},
"publicRuntimeConfig": {
"_app": {
"assetsPath": "/_nuxt/",
"basePath": "/",
"cdnURL": null,
},
},
2023-04-25 21:17:00 +00:00
"render": {
"bundleRenderer": {
2019-01-14 17:40:10 +00:00
"runInNewContext": false,
"shouldPrefetch": [Function],
"shouldPreload": [Function],
},
2023-04-25 21:17:00 +00:00
"compressor": {
2019-01-14 17:40:10 +00:00
"threshold": 0,
},
"crossorigin": undefined,
2019-01-14 17:40:10 +00:00
"csp": false,
2023-04-25 21:17:00 +00:00
"dist": {
2019-01-14 17:40:10 +00:00
"index": false,
"maxAge": "1y",
},
2023-04-25 21:17:00 +00:00
"etag": {
2019-01-14 17:40:10 +00:00
"weak": false,
},
2023-04-25 21:17:00 +00:00
"fallback": {
"dist": {},
"static": {
"handlers": {
2019-01-14 17:40:10 +00:00
".htm": false,
".html": false,
},
"skipUnknown": true,
},
},
2023-04-25 21:17:00 +00:00
"http2": {
2019-01-14 17:40:10 +00:00
"push": false,
"pushAssets": null,
"shouldPush": null,
},
"resourceHints": true,
"ssr": true,
"ssrLog": false,
2023-04-25 21:17:00 +00:00
"static": {
2019-01-14 17:40:10 +00:00
"prefix": true,
},
},
2019-01-14 19:47:00 +00:00
"rootDir": "/var/nuxt/test",
2023-04-25 21:17:00 +00:00
"router": {
2019-01-14 17:40:10 +00:00
"base": "/",
"extendRoutes": null,
"fallback": false,
"linkActiveClass": "nuxt-link-active",
"linkExactActiveClass": "nuxt-link-exact-active",
"linkPrefetchedClass": false,
2023-04-25 21:17:00 +00:00
"middleware": [],
2019-01-14 17:40:10 +00:00
"mode": "history",
"parseQuery": false,
"prefetchLinks": true,
feat: options.target and full-static export (#6159) * feat: add options.target * fix(lint): lint * fix(test): update snapshots * fix(builder): default value for target * fix(test): fix test * fix(test): test fixing * fix: use this.options.target * fix: final test * Update packages/vue-renderer/src/renderer.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: Add target option and update banner * fix(lint): fix * feat: Add warning when using serverMiddleware in static target * chore(utils): add TARGETS and MODES as constants * hotfix: lint * chore(module): add filename as alias of fileName * feat: introducing nuxt export and router/routes.json * hotfix: Fix the linting lord * chore(core): add comment for filename vs fileName * fix: use targets constant * chore: remove warning * fix: unit testing * wip: refactor and use TARGETS * fix: lint * feat: add target as alias for first arg value * fix: generate only for SPA * chore: explain to use nuxt static X * fix: render SPA fallback on redirect for static target * fix: lint issue * fix: only target is useful for now * wip * wip: nuxt static export is looking good * Update packages/generator/src/generator.js Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com> * Update packages/cli/src/options/common.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: add options.target * fix(lint): lint * fix(test): update snapshots * fix(builder): default value for target * fix(test): fix test * fix(test): test fixing * fix: use this.options.target * fix: final test * Update packages/vue-renderer/src/renderer.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: Add target option and update banner * fix(lint): fix * feat: Add warning when using serverMiddleware in static target * chore(utils): add TARGETS and MODES as constants * hotfix: lint * chore(module): add filename as alias of fileName * feat: introducing nuxt export and router/routes.json * hotfix: Fix the linting lord * chore(core): add comment for filename vs fileName * fix: use targets constant * chore: remove warning * fix: unit testing * wip: refactor and use TARGETS * fix: lint * feat: add target as alias for first arg value * chore: explain to use nuxt static X * fix: render SPA fallback on redirect for static target * fix: lint issue * fix: only target is useful for now * wip * wip: nuxt static export is looking good * Update packages/generator/src/generator.js Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com> * Update packages/cli/src/options/common.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * fix: duplicate imports * chore: don't server render if an error happens on static target * test: update unit and add export * lint: fix * lint: fix * fix: e2e test * fix: fallback only for static target * fix: dev test * feat: add generate.crawler * fix: full static is when generate.static is given * chore: improvements * fix: Add isFullStatic in nuxt/config.json * feat: handle fetch for full static * feat: router.prefetchPayloads for full static * chore: use fetch in async-data example * fix: add target only if given * fix: use created to have access to props in fetchOnServer * chore: add console.error in dev for easy debugging * feat: payload smart pre-fetching * fix: remove alias for target * fix: increment payloadFetchIndex is static set to false * chore: lint * chore: add serve command * chore: rename universal to server-side * fix: handle payloadPath on SPA fallback * fix: lint * chore lint again * feat: handle spa fallback * feat: support string for exclude * fix: fallback only if no extension or html * chore: use JSON.stringify() for static target * chore: lint again, dammit * chore: fix tests and remove too early return * fix: early return only for server target * fix: update tests * fix: unit tests * chore: add ssr option * chore: add logic for ssr option * fix: #6682 * chore(dx): add next command to run * fix: lint * fix: tests * chore: keep old behaviour for nuxt build in spa * fix: test again, oh boy * fix: alright this is good now * chore: add comment for spa fallback * chore: move routes.json to dot nuxt dir * chore: simplify check for promise * chore: unique lock id * chore: refactor isFullStatic * fix: dont set default in build context * chore: add test for serve * chore: update tests * hotfix: lint tests * chore(dx): improve message for bundling * feat: js payload extraction with jsonp * fix: keep serialized session script for legacy generate * fix: call to setPagePayload from fetchPayload * use devalue for payload chunks * feat: add initial load state chunk * feat: preload payload and state scripts * fix(vue-app): don't re-render the app if trailing slash on SSG * hotfix: remove console.log * chore(dx): add deploy infos for nuxt export Co-authored-by: Pooya Parsa <pyapar@gmail.com> * chore: handle fetching payload.js for nuxt state * chore(dx): error when using nuxt generate and static * chore: remove static option for clarity * chore: remove serverless target * hotfix: lint * hotfix: unit tests * chore: update legacy js resource * chore: remove query params from url in static target * fix: use globalName and urlJoin * chore: typo * feat: previewMode 👀 * chore: rename to enablePreview * fix: wait next tick to avoid error on spa * chore: try 1 sec * hotfix: test only for linux, wtf azure * refactor: static assets - generalize logic for modules need emit export static assets - allow customization for version, dir and base - serialization logic is only in ssr now * feat: smart state chunk creates * fix(client): ignore payload load error * perf: avoide payload loading for spa initial * perf: avoid loading failed chunks again * chore(cli): add simple compression for nuxt serve * test: update snapshots * fix version snapshot * fix(generator): set staticAssetsBase on context only for full static * fix tests * fix: honor shouldHashCspScriptSrc * chore(dx): add log for client-side fallback creation Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com> Co-authored-by: Alexander Lichter <manniL@gmx.net> Co-authored-by: Pooya Parsa <pooya@pi0.ir> Co-authored-by: Devon Rueckner <indirectlylit@users.noreply.github.com> Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-05-07 19:08:01 +00:00
"prefetchPayloads": true,
2019-01-14 17:40:10 +00:00
"routeNameSplitter": "-",
2023-04-25 21:17:00 +00:00
"routes": [],
2019-01-14 17:40:10 +00:00
"scrollBehavior": null,
"stringifyQuery": false,
"trailingSlash": undefined,
2019-01-14 17:40:10 +00:00
},
2023-04-25 21:17:00 +00:00
"server": {
2019-01-14 17:40:10 +00:00
"host": "localhost",
"https": false,
"port": 3000,
"socket": undefined,
"timing": false,
2019-01-14 17:40:10 +00:00
},
2023-04-25 21:17:00 +00:00
"serverMiddleware": [],
2019-01-14 19:47:00 +00:00
"srcDir": "/var/nuxt/test",
feat: options.target and full-static export (#6159) * feat: add options.target * fix(lint): lint * fix(test): update snapshots * fix(builder): default value for target * fix(test): fix test * fix(test): test fixing * fix: use this.options.target * fix: final test * Update packages/vue-renderer/src/renderer.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: Add target option and update banner * fix(lint): fix * feat: Add warning when using serverMiddleware in static target * chore(utils): add TARGETS and MODES as constants * hotfix: lint * chore(module): add filename as alias of fileName * feat: introducing nuxt export and router/routes.json * hotfix: Fix the linting lord * chore(core): add comment for filename vs fileName * fix: use targets constant * chore: remove warning * fix: unit testing * wip: refactor and use TARGETS * fix: lint * feat: add target as alias for first arg value * fix: generate only for SPA * chore: explain to use nuxt static X * fix: render SPA fallback on redirect for static target * fix: lint issue * fix: only target is useful for now * wip * wip: nuxt static export is looking good * Update packages/generator/src/generator.js Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com> * Update packages/cli/src/options/common.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: add options.target * fix(lint): lint * fix(test): update snapshots * fix(builder): default value for target * fix(test): fix test * fix(test): test fixing * fix: use this.options.target * fix: final test * Update packages/vue-renderer/src/renderer.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: Add target option and update banner * fix(lint): fix * feat: Add warning when using serverMiddleware in static target * chore(utils): add TARGETS and MODES as constants * hotfix: lint * chore(module): add filename as alias of fileName * feat: introducing nuxt export and router/routes.json * hotfix: Fix the linting lord * chore(core): add comment for filename vs fileName * fix: use targets constant * chore: remove warning * fix: unit testing * wip: refactor and use TARGETS * fix: lint * feat: add target as alias for first arg value * chore: explain to use nuxt static X * fix: render SPA fallback on redirect for static target * fix: lint issue * fix: only target is useful for now * wip * wip: nuxt static export is looking good * Update packages/generator/src/generator.js Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com> * Update packages/cli/src/options/common.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * fix: duplicate imports * chore: don't server render if an error happens on static target * test: update unit and add export * lint: fix * lint: fix * fix: e2e test * fix: fallback only for static target * fix: dev test * feat: add generate.crawler * fix: full static is when generate.static is given * chore: improvements * fix: Add isFullStatic in nuxt/config.json * feat: handle fetch for full static * feat: router.prefetchPayloads for full static * chore: use fetch in async-data example * fix: add target only if given * fix: use created to have access to props in fetchOnServer * chore: add console.error in dev for easy debugging * feat: payload smart pre-fetching * fix: remove alias for target * fix: increment payloadFetchIndex is static set to false * chore: lint * chore: add serve command * chore: rename universal to server-side * fix: handle payloadPath on SPA fallback * fix: lint * chore lint again * feat: handle spa fallback * feat: support string for exclude * fix: fallback only if no extension or html * chore: use JSON.stringify() for static target * chore: lint again, dammit * chore: fix tests and remove too early return * fix: early return only for server target * fix: update tests * fix: unit tests * chore: add ssr option * chore: add logic for ssr option * fix: #6682 * chore(dx): add next command to run * fix: lint * fix: tests * chore: keep old behaviour for nuxt build in spa * fix: test again, oh boy * fix: alright this is good now * chore: add comment for spa fallback * chore: move routes.json to dot nuxt dir * chore: simplify check for promise * chore: unique lock id * chore: refactor isFullStatic * fix: dont set default in build context * chore: add test for serve * chore: update tests * hotfix: lint tests * chore(dx): improve message for bundling * feat: js payload extraction with jsonp * fix: keep serialized session script for legacy generate * fix: call to setPagePayload from fetchPayload * use devalue for payload chunks * feat: add initial load state chunk * feat: preload payload and state scripts * fix(vue-app): don't re-render the app if trailing slash on SSG * hotfix: remove console.log * chore(dx): add deploy infos for nuxt export Co-authored-by: Pooya Parsa <pyapar@gmail.com> * chore: handle fetching payload.js for nuxt state * chore(dx): error when using nuxt generate and static * chore: remove static option for clarity * chore: remove serverless target * hotfix: lint * hotfix: unit tests * chore: update legacy js resource * chore: remove query params from url in static target * fix: use globalName and urlJoin * chore: typo * feat: previewMode 👀 * chore: rename to enablePreview * fix: wait next tick to avoid error on spa * chore: try 1 sec * hotfix: test only for linux, wtf azure * refactor: static assets - generalize logic for modules need emit export static assets - allow customization for version, dir and base - serialization logic is only in ssr now * feat: smart state chunk creates * fix(client): ignore payload load error * perf: avoide payload loading for spa initial * perf: avoid loading failed chunks again * chore(cli): add simple compression for nuxt serve * test: update snapshots * fix version snapshot * fix(generator): set staticAssetsBase on context only for full static * fix tests * fix: honor shouldHashCspScriptSrc * chore(dx): add log for client-side fallback creation Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com> Co-authored-by: Alexander Lichter <manniL@gmx.net> Co-authored-by: Pooya Parsa <pooya@pi0.ir> Co-authored-by: Devon Rueckner <indirectlylit@users.noreply.github.com> Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-05-07 19:08:01 +00:00
"ssr": true,
2023-04-25 21:17:00 +00:00
"styleExtensions": [
2019-01-14 17:40:10 +00:00
"css",
"pcss",
"postcss",
"styl",
"stylus",
"scss",
"sass",
"less",
],
feat: options.target and full-static export (#6159) * feat: add options.target * fix(lint): lint * fix(test): update snapshots * fix(builder): default value for target * fix(test): fix test * fix(test): test fixing * fix: use this.options.target * fix: final test * Update packages/vue-renderer/src/renderer.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: Add target option and update banner * fix(lint): fix * feat: Add warning when using serverMiddleware in static target * chore(utils): add TARGETS and MODES as constants * hotfix: lint * chore(module): add filename as alias of fileName * feat: introducing nuxt export and router/routes.json * hotfix: Fix the linting lord * chore(core): add comment for filename vs fileName * fix: use targets constant * chore: remove warning * fix: unit testing * wip: refactor and use TARGETS * fix: lint * feat: add target as alias for first arg value * fix: generate only for SPA * chore: explain to use nuxt static X * fix: render SPA fallback on redirect for static target * fix: lint issue * fix: only target is useful for now * wip * wip: nuxt static export is looking good * Update packages/generator/src/generator.js Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com> * Update packages/cli/src/options/common.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: add options.target * fix(lint): lint * fix(test): update snapshots * fix(builder): default value for target * fix(test): fix test * fix(test): test fixing * fix: use this.options.target * fix: final test * Update packages/vue-renderer/src/renderer.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * feat: Add target option and update banner * fix(lint): fix * feat: Add warning when using serverMiddleware in static target * chore(utils): add TARGETS and MODES as constants * hotfix: lint * chore(module): add filename as alias of fileName * feat: introducing nuxt export and router/routes.json * hotfix: Fix the linting lord * chore(core): add comment for filename vs fileName * fix: use targets constant * chore: remove warning * fix: unit testing * wip: refactor and use TARGETS * fix: lint * feat: add target as alias for first arg value * chore: explain to use nuxt static X * fix: render SPA fallback on redirect for static target * fix: lint issue * fix: only target is useful for now * wip * wip: nuxt static export is looking good * Update packages/generator/src/generator.js Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com> * Update packages/cli/src/options/common.js Co-Authored-By: Alexander Lichter <manniL@gmx.net> * fix: duplicate imports * chore: don't server render if an error happens on static target * test: update unit and add export * lint: fix * lint: fix * fix: e2e test * fix: fallback only for static target * fix: dev test * feat: add generate.crawler * fix: full static is when generate.static is given * chore: improvements * fix: Add isFullStatic in nuxt/config.json * feat: handle fetch for full static * feat: router.prefetchPayloads for full static * chore: use fetch in async-data example * fix: add target only if given * fix: use created to have access to props in fetchOnServer * chore: add console.error in dev for easy debugging * feat: payload smart pre-fetching * fix: remove alias for target * fix: increment payloadFetchIndex is static set to false * chore: lint * chore: add serve command * chore: rename universal to server-side * fix: handle payloadPath on SPA fallback * fix: lint * chore lint again * feat: handle spa fallback * feat: support string for exclude * fix: fallback only if no extension or html * chore: use JSON.stringify() for static target * chore: lint again, dammit * chore: fix tests and remove too early return * fix: early return only for server target * fix: update tests * fix: unit tests * chore: add ssr option * chore: add logic for ssr option * fix: #6682 * chore(dx): add next command to run * fix: lint * fix: tests * chore: keep old behaviour for nuxt build in spa * fix: test again, oh boy * fix: alright this is good now * chore: add comment for spa fallback * chore: move routes.json to dot nuxt dir * chore: simplify check for promise * chore: unique lock id * chore: refactor isFullStatic * fix: dont set default in build context * chore: add test for serve * chore: update tests * hotfix: lint tests * chore(dx): improve message for bundling * feat: js payload extraction with jsonp * fix: keep serialized session script for legacy generate * fix: call to setPagePayload from fetchPayload * use devalue for payload chunks * feat: add initial load state chunk * feat: preload payload and state scripts * fix(vue-app): don't re-render the app if trailing slash on SSG * hotfix: remove console.log * chore(dx): add deploy infos for nuxt export Co-authored-by: Pooya Parsa <pyapar@gmail.com> * chore: handle fetching payload.js for nuxt state * chore(dx): error when using nuxt generate and static * chore: remove static option for clarity * chore: remove serverless target * hotfix: lint * hotfix: unit tests * chore: update legacy js resource * chore: remove query params from url in static target * fix: use globalName and urlJoin * chore: typo * feat: previewMode 👀 * chore: rename to enablePreview * fix: wait next tick to avoid error on spa * chore: try 1 sec * hotfix: test only for linux, wtf azure * refactor: static assets - generalize logic for modules need emit export static assets - allow customization for version, dir and base - serialization logic is only in ssr now * feat: smart state chunk creates * fix(client): ignore payload load error * perf: avoide payload loading for spa initial * perf: avoid loading failed chunks again * chore(cli): add simple compression for nuxt serve * test: update snapshots * fix version snapshot * fix(generator): set staticAssetsBase on context only for full static * fix tests * fix: honor shouldHashCspScriptSrc * chore(dx): add log for client-side fallback creation Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com> Co-authored-by: Alexander Lichter <manniL@gmx.net> Co-authored-by: Pooya Parsa <pooya@pi0.ir> Co-authored-by: Devon Rueckner <indirectlylit@users.noreply.github.com> Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-05-07 19:08:01 +00:00
"target": "server",
2019-01-14 17:40:10 +00:00
"test": true,
2023-04-25 21:17:00 +00:00
"vue": {
"config": {
2019-01-14 17:40:10 +00:00
"performance": false,
"silent": true,
},
},
"vueMeta": null,
2023-04-25 21:17:00 +00:00
"watch": [
2019-01-14 19:47:00 +00:00
"/var/nuxt/test/nuxt.config.js",
2019-01-14 17:40:10 +00:00
],
2023-04-25 21:17:00 +00:00
"watchers": {
"chokidar": {
2019-01-14 17:40:10 +00:00
"ignoreInitial": true,
},
"rewatchOnRawEvents": undefined,
2023-04-25 21:17:00 +00:00
"webpack": {
"aggregateTimeout": 1000,
},
2019-01-14 17:40:10 +00:00
},
}
`;