Commit Graph

1774 Commits

Author SHA1 Message Date
Cain Hall b80056c96c
fix(generator): nested route missing trailingSlash (#8237)
[release]
2020-11-25 15:24:13 +01:00
Zuckjet 135456f051
fix(csp): apply right csp header when status code is 304 (#8352) 2020-11-25 15:22:32 +01:00
Sébastien Chopin 691f21c683
fix(vue-app): handle missing payloads on full static (#8314)
* fix(vue-app): handle missing payloads on full static

Fixes #7717

* chore: rename routesManifest to manifest

* chore: remove console.log

* chore(vue-app): don't have staticAssetsBase if undefined

* chore: add manifest option

* test: update snapshot

* chore: use foundRoute to avoid multiple vars name

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2020-11-25 15:19:29 +01:00
renovate[bot] e635cc5044
chore(deps): update all non-major dependencies (#8326)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-25 15:15:58 +01:00
Daniel Roe 9ce75c5dfe
fix(types): correct vue.config types (#8362) 2020-11-18 10:30:54 +01:00
Daniel Roe 7278b10112
fix(vue-app): warn if promises and functions are in fetch state (#8348) 2020-11-16 09:43:20 +01:00
Mathieu TUDISCO f36a6a0ff6
fix(types): add missing `isFetching` and nbFetching to `NuxtApp` interface (#8349) 2020-11-16 09:31:21 +01:00
renovate[bot] 57aa7cc54d
chore(deps): update dependency node-html-parser to v2 (#8329) 2020-11-14 23:20:24 +00:00
Daniel Roe b050861332
fix(generator): respect publicPath for static assets (#8344)
* fix: respect publicPath for static assets

* test: add test for correct `publicPath` URL handling
2020-11-14 23:10:16 +01:00
renovate[bot] e934da3c36
chore(deps): update devdependency @nuxtjs/eslint-config to v5 (#8345)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-11-14 17:10:53 +00:00
Audrius Jakumavicius 80571bc05d
fix(cli): handle `generate.cache.ignore` as a function in `ensureBuild` (#8337) 2020-11-12 15:03:06 +01:00
Pooya Parsa 8b8eb84c89 chore: pin vue-router to 3.4.8 2020-11-09 20:01:54 +01:00
Orkhan Alikhanov 3e480fdadc fix(types): `NuxtOptionsHead` can be a function (#8319)
[deprecated]
2020-11-09 18:26:38 +01:00
Sébastien Chopin e601f0a0d6
chore(server): redirect if `router.base` specified in development (#8313) 2020-11-09 18:17:32 +01:00
renovate[bot] 63f5a0ed8c
chore(deps): update all non-major dependencies (#8300)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-09 18:11:56 +01:00
Pim 2c6610cfb8
fix(vue-app): triggerScroll when transitions is disabled (#8225) 2020-11-06 09:38:08 +01:00
Daniel Roe 005daebfce
fix(types): add missing `ssrContext` and `next` typings to `Context` (#8302)
closes #8296
2020-11-06 09:36:40 +01:00
renovate[bot] 8a25a91b60
chore(deps): update all non-major dependencies (#8267) 2020-11-04 13:59:02 +00:00
Xin Du (Clark) 418405c216
chore(actions): speed up windows build (#8265) 2020-11-04 13:38:38 +00:00
Daniel Roe 442b6c07c9
fix(vue-app): use nuxt globalName correctly in nuxt-link and fetch mixin (#8289) 2020-11-04 13:35:29 +00:00
Daniel Roe e14b7201b4
fix(vue-app): prevent redirection loop with uri encoded path (#8280) 2020-11-04 13:35:12 +00:00
renovate[bot] 44df8cc1b1
chore(deps): update dependency caniuse-lite to ^1.0.30001154 (#8264)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-29 22:15:26 +00:00
renovate[bot] 918b589772
chore(deps): update all non-major dependencies (#8224)
* chore(deps): update all non-major dependencies

* fix lock

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-10-29 21:47:05 +00:00
renovate[bot] d5c05054fe
chore(deps): update all non-major dependencies (#8211)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-19 11:59:14 +02:00
Steve Perkins 2547605164
fix(cli): grammatical errors (#8219)
* Fixed grammatical errors

* Update packages/cli/src/commands/generate.js

Co-authored-by: Daniel Roe <daniel@roe.dev>

Co-authored-by: pooya parsa <pyapar@gmail.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2020-10-19 11:58:42 +02:00
pooya parsa 265d0e7aac v2.14.7
[release]
2020-10-15 18:17:49 +02:00
Sébastien Chopin 7e7190b90d
fix: add better logs for DX with target option (#8206)
* fix: add better logs for DX with target option

* chore: add warning for old nuxt build in ssr false

* Update generator.js

* Update generate.js

* chore: better logs

* fix: update
2020-10-15 18:12:06 +02:00
renovate[bot] 044d07cb17
chore(deps): update all non-major dependencies to ^7.12.0 (#8207)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-15 13:11:27 +02:00
pooya parsa c75ac80f36
fix(babel-preset-app): always transpile optional chaining and nullish-coalescing for server (#8203) 2020-10-14 16:02:13 +02:00
pooya parsa d9f48228fe
fix(cli): rebuild if process.env changes in nuxt.config (#8200) 2020-10-14 10:30:44 +02:00
renovate[bot] b533877b6a
chore(deps): update all non-major dependencies (#8197)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-13 21:07:29 +02:00
pooya parsa 819afcdeb4
fix(cli): avoid error about `nuxt-edge` if installed in parent `node_modules` (#8194) 2020-10-13 12:20:04 +02:00
renovate[bot] 5b87d1cfc0
chore(deps): update all non-major dependencies (#8177)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-13 12:19:36 +02:00
Daniel Roe 9c4dac3c61
fix(vue-app): use getter to provide `this.$nuxt` (#8170) 2020-10-13 12:19:08 +02:00
Daniel Roe a748cf0ca3
fix(types): add type for `serverMiddleware` object format (#8182) 2020-10-11 00:34:37 +02:00
renovate[bot] 00c9dc3fc2
chore(deps): update dependency @types/node to ^12.12.67 (#8171)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-09 12:03:26 +02:00
Daniel Roe 81030bef6b
fix(types): make `NuxtConfig` an interface (#8169) 2020-10-09 12:03:04 +02:00
renovate[bot] 1b1ef37fcb
chore(deps): update dependency upath to v2 (#8157)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-08 16:36:19 +02:00
renovate[bot] f0c1375477
chore(deps): update all non-major dependencies (#8137)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-08 16:34:45 +02:00
Xin Du (Clark) 202f35584b
fix(cli): mode deprecation with explicit spa or universal flag (#8134) 2020-10-08 16:30:02 +02:00
Sébastien Chopin 34f32113b4
fix(generator): handle when no `routes.json` defined (#8166) 2020-10-08 16:29:30 +02:00
Clark Du 61e93d01f9 Revert "fix(vue-app): use mixin to provide `this.$nuxt` (#8068)"
This reverts commit 8abdc177be.
2020-09-30 12:08:57 +01:00
Daniel Roe 8abdc177be
fix(vue-app): use mixin to provide `this.$nuxt` (#8068)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-09-30 11:16:16 +01:00
Dmitriy 79440f3ce5
fix(vue-app): scrollRestoration hasn't set (#8055) 2020-09-30 10:57:36 +01:00
renovate[bot] 3aa02cf00c
chore(deps): update all non-major dependencies (#8131)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-30 10:55:52 +01:00
renovate[bot] d7a8548d53
chore(deps): update all non-major dependencies (#8101) 2020-09-28 10:57:10 +01:00
pooya parsa 41176577ad v2.14.6
[release]
2020-09-21 12:30:19 +02:00
Yihao Gao 4374e541ee
fix(babel-preset-app): allow to specify `corejs.version` as string (#8085) 2020-09-21 12:21:39 +02:00
renovate[bot] 761d2abb7f
chore(deps): update all non-major dependencies (#8086)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 12:21:07 +02:00
renovate[bot] b9b55de654
chore(deps): update all non-major dependencies (#8083)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-16 12:51:11 +02:00
Daniel Roe 89a64161d0
fix(vue-app): always import error layout (#8067) 2020-09-15 18:33:26 +02:00
renovate[bot] 3eff45477f
chore(deps): update all non-major dependencies (#8058)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-15 16:03:42 +01:00
Dmitriy 45b7838710
fix(vue-app): empty `$fetch` function for SSR with static target (#8053) 2020-09-10 21:16:00 +02:00
renovate[bot] b93ba5c688
chore(deps): update all non-major dependencies (#8052)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-10 19:44:09 +02:00
renovate[bot] 7f8b3a9550
chore(deps): update dependency serialize-javascript to ^5.0.1 (#8051)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-10 15:11:13 +02:00
pooya parsa 3b037720f2 v2.14.5
[release]
2020-09-10 14:35:08 +02:00
pooya parsa d864b2bd75
chore(config): deprecate mode option (#8044) 2020-09-09 16:39:20 +02:00
renovate[bot] c9513010eb
chore(deps): update dependency serialize-javascript to v5 (#8045)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-09 16:11:47 +02:00
Dmitriy 757d5d46da
fix(vue-app): missing layout in error page with `splittedChunks.layout` (#8016) 2020-09-09 12:32:10 +02:00
remigermain 7e3532ea59
fix(config): normalize `build.indicator: true` to default value (#8030)
* fix(config): indicator set to true

* fix eslint

* Update options.js

* indicator is not ad-hoc

Co-authored-by: rgermain <germain.remi@protonmail.com>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-09-09 11:37:49 +02:00
pooya parsa 7961e539da
fix(utils): support chaining functions with promise (#8038) 2020-09-09 11:22:43 +02:00
pooya parsa 4de44e6c52
fix(config): avoid recursion when interpolating env (#8014) 2020-09-09 10:50:27 +02:00
pooya parsa a3d836401c
fix: revert production js chunk names (#8012) 2020-09-09 10:49:31 +02:00
renovate[bot] 0bafd77306
chore(deps): update all non-major dependencies (#8005)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-09 10:22:44 +02:00
pooya parsa a7da6fd56f
fix(config): don't interpolate variables with undefined value (#8013) 2020-09-03 13:42:17 +02:00
renovate[bot] 866b4ddfed
chore(deps): update all non-major dependencies (#7980)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-02 12:02:36 +02:00
Florent Catiau-Tristant ff6717904e
types: expose `Inject` type (#7985)
Co-authored-by: florent.catiau <florent.catiau@veepee.com>
2020-09-02 11:58:19 +02:00
pooya parsa 1a77fba4eb v2.14.4 2020-08-27 12:25:35 +02:00
Per Anders Ljusbäck 2f76702291
fix(vue-renderer): add `crossorigin` for styles (#7954)
* Added ability for styles to get crossorigin if set

* refactor to addAttrs

Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-08-26 13:03:31 +01:00
renovate[bot] c44420cd5f
chore(deps): update dependency caniuse-lite to ^1.0.30001118 (#7969)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-26 11:39:28 +02:00
Ahad Birang 9f05febe08
fix(cjs): fix HMR issue with mongoose (#7938) 2020-08-26 11:38:29 +02:00
netkin-paris 7cecbccabd
fix(module): protect `clearRequireCache` against infinite recursion (#7966) 2020-08-26 11:36:39 +02:00
SHO-ZY e0af2ed679
fix(cli): handle error in full static mode with `--fail-on-error` (#7948) 2020-08-25 21:38:12 +02:00
Florent Catiau-Tristant 51b037fea6
fix(vue-app): var names shadowing in chrome debugger (#7939)
* fix: var names shadowing in debug

* fix: new appropriate variable name

Co-authored-by: florent.catiau <florent.catiau@veepee.com>
2020-08-25 21:31:36 +02:00
Xin Du (Clark) 11646ba2f6
fix(webpack): no module scripts in spa modern client mode (#7967)
[release]
2020-08-25 21:26:04 +02:00
renovate[bot] e72d03a49a
chore(deps): update all non-major dependencies (#7929)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-25 15:11:17 +01:00
Alexander Lichter a969e87014
chore: add avif format as image (#7961) 2020-08-25 15:10:22 +01:00
pooya parsa 5e9d759d7b v2.14.3 [release] 2020-08-16 19:03:06 +02:00
Daniel Roe f1a95c8af8
fix(vue-renderer): apply `nomodule` to legacy chunks (#7928)
closes #7927
2020-08-16 19:02:10 +02:00
pooya parsa 34c56722c8 v2.14.2 [release] 2020-08-16 12:57:53 +02:00
Jonas Galvez fe0498cecd
fix(vue-app): prevent router.registerModule reallocation (#7915) (#7916) 2020-08-15 22:29:17 +02:00
pooya parsa 44471ec9df
fix(webpack): avoid using `node_modules` for chunk names (#7906)
[release]
2020-08-14 23:59:54 +02:00
Xin Du (Clark) 68b9183c4c
fix(modern): missing nomodule on legacy modules (#7919) 2020-08-14 23:59:10 +02:00
Ahad Birang 10e82b24da
fix(vue-app): use anchor to `/` if route is undefined in error page (#7877) 2020-08-14 23:58:17 +02:00
Matthew Gamble ec9a78a3d2
types: improve definitions for component transition property (#7902) 2020-08-14 23:54:35 +02:00
pooya parsa 9f4d420b1f
fix(vue-app): fix regression with `scrollToTop` (#7920) 2020-08-14 23:42:04 +02:00
renovate[bot] 9914fbd017
chore(deps): update all non-major dependencies (#7914)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-14 19:31:22 +02:00
Ahad Birang e03563b3dc
fix(router): resolve redirect errors (#7912) 2020-08-14 00:31:00 +02:00
renovate[bot] 5fdfba2279
chore(deps): update all non-major dependencies (#7853)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 15:05:54 +02:00
Ahad Birang 4a9c9a15f3
fix(cli): improve project dir detection for external commands (#7860) 2020-08-05 22:23:25 +02:00
pooya parsa c30499d7e0 v2.14.1
[release]
2020-08-04 17:33:56 +02:00
Ahad Birang c609b4b93d
fix(webpack): support string values for `corejsVersion` (#7849) 2020-08-04 17:12:59 +02:00
Ahad Birang 2eb42876a2
fix(utils): remove optional params in routes ending with `index` (#7845) 2020-08-04 15:03:00 +02:00
Ahad Birang ec534d05b9
fix(router): optional dynamic routing in children routes (#7843) 2020-08-04 11:49:12 +02:00
renovate[bot] c16d199f0f
chore(deps): update dependency caniuse-lite to ^1.0.30001110 (#7842)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-04 11:48:50 +02:00
Matthieu Sieben 128c9743c4
fix(vue-app): handle server-side routing errors (#7801) 2020-08-04 11:29:23 +02:00
Xin Du (Clark) f130901ab1
fix(core, config): disabe esm cache (#7839) 2020-08-04 11:28:31 +02:00
renovate[bot] 3204f30186
chore(deps): update all non-major dependencies (#7820)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-03 15:57:59 +02:00
renovate[bot] 73a87536b5
chore(deps): update all non-major dependencies (#7811)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-30 19:47:08 +02:00
Pooya Parsa 5909de70ea fix: enforce name for all groups to avoid regression (#7808) 2020-07-30 17:10:43 +02:00
Ahad Birang 19e68e770c
fix(crawler): skip external link with no schema (#7806) 2020-07-30 16:22:53 +02:00
pooya parsa 2e1025f2de
fix(webpack): avoid grouping with default name (#7808)
[release]
2020-07-30 16:22:03 +02:00
renovate[bot] 0a4aacc946
chore(deps): update dependency @types/serve-static to ^1.13.5 (#7793)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-29 11:29:26 +02:00
lihbr 3d1526364a
fix(cli): generate still run cache when disabled (#7802)
Co-authored-by: lihbr <lihbr@users.noreply.github.com>
2020-07-29 11:19:46 +02:00
lihbr 4db7e432df
fix(cli): normalize win32 paths for `nuxt generate` cache snapshots (#7796)
Co-authored-by: lihbr <lihbr@users.noreply.github.com>
2020-07-28 14:38:06 +02:00
Rafał Chłodnicki e295ae7ffd
fix: add types for `build.corejs` option and use number (#7789) 2020-07-28 14:33:15 +02:00
pooya parsa 60f68638cb v2.14.0 [release] 2020-07-27 19:23:49 +02:00
pooya parsa 1c8cc4c8e6 fix: add missing create-require dependency for webpack 2020-07-27 18:20:37 +02:00
pooya parsa b51a4a97e7 fix: use core-js package.json to read version 2020-07-27 18:20:05 +02:00
Matthieu Sieben aebf0ffefd
fix(webpack): ensure loaders are first searched from `@nuxt/webpack` (#7787)
[release]

Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-07-27 17:19:47 +02:00
Yaroslav Vorobev 66b4aa2f62
fix(vue-app): `nuxt-link` prefetch error on fallback page (#7766) 2020-07-27 15:44:10 +02:00
Ahad Birang 6a2576b6f6
feat(webpack): auto detect core-js version (#7785)
* feat: add build option to set corejs version

* fix tests

* refactor: improve error handling and warn for invalid corejs version

* fix: only pick major part

* simplify as we are already using try/catch

Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-07-27 15:36:46 +02:00
renovate[bot] c9a096f4d0
chore(deps): update dependency caniuse-lite to ^1.0.30001107 (#7781)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-27 11:03:30 +02:00
Kevin Marrec 1977b06d1c
types: fix generate types (#7780) 2020-07-27 11:03:11 +02:00
Ahad Birang 298c3e3ef7
fix(generator): avoid duplicate slashes for routes ending with hash (#7776)
* fix: remove duplicate slashes from crawled routes

* fixture: use trailing slash for hash

* refactor: do trailing slash sanetization after hash removal

* test: enable trailing slash for full-static fixture

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-07-27 11:01:24 +02:00
Daniel Roe 5f7d675807
fix(cli): don't use absolute path of `.cache/nuxt` as transpilation pattern (#7775) 2020-07-27 10:54:56 +02:00
renovate[bot] 775831eb30
chore(deps): update all non-major dependencies (#7760)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-26 17:51:34 +02:00
Ahad Birang 4f27cdded8
fix(webpack): font-family hex issue (#7763) 2020-07-26 17:48:58 +02:00
Ahad Birang 6af76334c5
fix(utils): include routes with children for generation (#7761) 2020-07-26 17:47:56 +02:00
renovate[bot] 45f204c12c
chore(deps): update all non-major dependencies (#7751)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-23 09:51:30 +02:00
Timothy R. Chavez 2dc11a71dc
fix(vue-renderer): read `target` from class instead of `serverContext` (#7752) 2020-07-22 14:51:31 +02:00
Martin Novák b469f931f8
feat(builder): support async `extendRoutes` (#7754)
Co-authored-by: Martin Novák <martin.novak@cleverlance.com>
2020-07-22 12:30:50 +02:00
renovate[bot] 925220da9a
chore(deps): update all non-major dependencies (#7728)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-21 10:10:29 +02:00
Sébastien Chopin 6ab65fbf4f
fix(vue-app): handle fallback on generated page (#7718)
* fix(vue-app): handle fallback on generated page

* chore: improvements and small refactor

* fix: lint

Co-authored-by: pooya parsa <pyapar@gmail.com>

* chore: add force-build option to nuxt generate

Co-authored-by: pooya parsa <pyapar@gmail.com>

[release]
2020-07-16 19:32:09 +02:00
renovate[bot] 361afcb747
chore(deps): update all non-major dependencies (#7721)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-16 17:15:01 +02:00
pooya parsa c5a4465572
feat: static target DX improvements (#7712)
[release]

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: pimlie <pimlie@hotmail.com>
2020-07-16 17:10:54 +02:00
Sébastien Chopin f81c588bf6
fix(vue-app): don't fetch payload for store mutation for preview and spa fallback (#7723) 2020-07-16 17:10:06 +02:00
renovate[bot] d1221aab13
chore(deps): update all non-major dependencies (#7693)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-15 13:13:14 +02:00
IKKO-Ohta e7c01a10f0
types: add cross-origin property to `NuxtOptionsRender` (#7709) 2020-07-13 11:32:37 +02:00
Harlan Wilton 124cb0994a
feat(vue-renderer): add `vue-renderer:spa:prepareContext` hook (#7633)
[release]
2020-07-09 15:15:41 +02:00
Alexander Lichter c5465e65c8
fix(router): show default child if trailingSlash is false (#6594) 2020-07-09 15:08:12 +02:00
Pooya Parsa 5272a48ea9 refactor(server): externalsWhitelist ~> externalsAllowlist 2020-07-09 13:33:20 +02:00
Piotr Tomiak 8d51eebe0c
feat(vue-app): add web-types.json for better code insight in WebStorm (#7611)
* feat(vue-app): add web-types.json for better code insight in WebStorm (#7607)

* fix: add web-types to files section

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-07-09 13:11:20 +02:00
renovate[bot] 6bfb7b5bc1
chore(deps): update dependency webpack-node-externals to ^2.3.0 (#7688)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-09 13:00:37 +02:00
Pooya Parsa 2e5bc24f44 chore(deps): update `webpack-node-externals` to 2.x 2020-07-09 12:55:18 +02:00
Pooya Parsa ee9553c24d feat(cli): install @nuxt/static by default 2020-07-09 12:52:03 +02:00
renovate[bot] a4fdbf8aa2
chore(deps): update all non-major dependencies (#7671)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-09 12:39:06 +02:00
renovate[bot] 4da7fb6e23
chore(deps): update all non-major dependencies (#7668)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-05 23:00:22 +02:00
Kevin Marrec 4833915a1b
types: fix module options type (#7670)
[release]
2020-07-05 22:31:57 +02:00
Simon Tretter b4ffdab790
fix(webpack): fallback for empty chunk name (#7667)
[release]

Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-07-04 17:28:46 +02:00
pooya parsa e3821ba78c v2.13.3 [release] 2020-07-02 20:06:42 +02:00
Xin Du (Clark) 03424513ce
refactor(csp): remove unsafe-eval in dev mode (#7659) 2020-07-02 19:37:55 +02:00
Denis Karabaza d4363d4477
fix(vue-app): check plugin key on `Vue.prototype` instead of `Vue` (#7656) 2020-07-02 18:43:32 +02:00
Sébastien Chopin 191f66a19b
fix(vue-app): handle layout on client error (#7654)
[release]
2020-07-02 18:22:12 +02:00
Sébastien Chopin 2f07f66fb8
fix(vue-app): don't fetch payload on first spa fallback render (#7657) 2020-07-02 18:19:32 +02:00
pooya parsa 2302ffa40b fix(webpack): use group hash if compact name is long
Similar fix of webpack/webpack#6429 [release]
2020-07-02 16:27:10 +02:00
renovate[bot] 6979b304ee
chore(deps): update all non-major dependencies (#7642)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-02 10:59:38 +02:00
Sébastien Chopin d8dace9748
fix: handle nuxt static command (#7647)
[release]
2020-07-01 17:45:56 +02:00
pooya parsa 1edac29eba
fix(webpack): use compact name for concatenated modules (#7639)
[release]
2020-06-30 19:47:42 +02:00
renovate[bot] 62282853a8
chore(deps): update all non-major dependencies (#7634)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-30 19:20:53 +02:00
Konstantin Barabanov b4d3ebf472
fix(vue-app): sanitize path with trailing slash in `getLocation` (#6744) (#6745) 2020-06-30 19:16:21 +02:00
Daniel Roe 6b06ab201e
types: import types for `@nuxt/telemetry` and `@nuxt/components` (#7626)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-06-30 10:49:31 +02:00
Xin Du (Clark) 23324b9eae
fix(webpack): modern build should wait for legacy assets (#7635)
#7562
2020-06-29 17:44:08 +02:00
renovate[bot] ffb340cc5c
chore(deps): update all non-major dependencies (#7621)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-28 12:27:57 +02:00
pooya parsa c998072c94 v2.13.2 2020-06-26 20:58:45 +02:00
renovate[bot] 000ad67f99
chore(deps): update dependency consola to ^2.14.0 (#7617) 2020-06-26 17:10:50 +02:00
pooya parsa a52385361b
fix(vue-app): remove hash from payload path (#7614)
* fix(vue-app): remove hash from payload path

* test: add hash usage to full-static fixture
2020-06-26 17:10:24 +02:00
Denis Karabaza a87218b745
fix(webpack): explicitly pass outputFileSystem to webpackDevMiddleware (#7613) 2020-06-26 14:55:45 +02:00
renovate[bot] 330c5643e8
chore(deps): update all non-major dependencies (#7609)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-26 13:35:31 +02:00
pooya parsa b070e19a15 fix(core): only warn for duplicate module if metaKey is not specified 2020-06-25 16:52:40 +02:00
pooya parsa b0274357b3
fix(cli): listen to a random port for export and generate (#7608) 2020-06-25 16:48:04 +02:00
Sébastien Chopin fe01ec34d3
fix(vue-app): no need to set layout on App (#7606) 2020-06-25 15:23:06 +02:00
Michał Kędrzyński 4a0cf8f404
fix(utils): flat routes if child routes have absolute paths (#7604) 2020-06-25 14:42:16 +02:00
pooya parsa d0056fbcc8 fix(core): avoid breaking change for duplicate modules (resolves #7605) 2020-06-25 14:34:31 +02:00
Dmitry Molotkov d89812f241
fix(webpack): chunk name normalization for catch-all pages and windows (#7603) 2020-06-24 22:46:16 +02:00
pooya parsa 56b158e7d6 v2.13.1 [release] 2020-06-24 10:36:15 +02:00
pooya parsa 12d6702eba chore: fix dev version
fixes components version check during nuxt development
2020-06-24 10:23:29 +02:00
renovate[bot] e1de5e8667
chore(deps): update all non-major dependencies (#7594)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-24 10:03:26 +02:00
Sébastien Chopin 6332aaa3a2 fix: check correct layout when navigating from error
Resolves #7567
2020-06-23 19:54:47 +02:00
pooya parsa 11a87d858d
fix(vue-app): always import `resolveRouteComponents` (#7591)
[release]
2020-06-23 17:48:09 +02:00
Kevin Marrec c00407090a
types: fix module and typescript compatibility and add missing crawler definition (#7590)
[release]
2020-06-23 17:44:23 +02:00
renovate[bot] 68e7285358
chore(deps): update all non-major dependencies (#7583)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-23 13:30:36 +02:00
renovate[bot] ce28f68d3c
chore(deps): update dependency @types/html-minifier to v4 (#7574)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-22 11:54:15 +02:00
renovate[bot] 4c410e351d
chore(deps): update all non-major dependencies (#7557)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-22 11:50:56 +02:00
Pooya Parsa dbecbe4ada v2.13.0 [release] 2020-06-18 18:48:36 +02:00
Pooya Parsa b6e8b74833 feat(types): add runtimeConfig types (nuxt/typescript#368)
Co-Authored-By: Kevin Marrec <kevin@marrec.io>
2020-06-18 18:07:08 +02:00
Sébastien Chopin 99432d5d94 fix(generator): rename export hook to distRemoved 2020-06-18 17:45:06 +02:00
Xin Du (Clark) 7f1429ebb3
fix(vue-app): not strip trailing slash for redirect external domain (#7533) 2020-06-18 17:32:39 +02:00
pooya parsa a88953fe8f
feat(cli): improve banner lines dx (#7537)
* feat: improve banner ocdx

* chore: make NODE_ENV more clear

* chore: update tests and improvements

* shame on me

* chore: mode ~> rendering
2020-06-17 16:37:19 +02:00
Sébastien Chopin 5cfaf0aca1
refactor(banner): reduce boxen size (#7532)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-06-16 21:48:58 +01:00
Ryan Henning 838394815d
fix(vue-app): `redirect` no longer strips trailing slash from URL (#7475) 2020-06-16 20:37:47 +01:00
pooya parsa 92ef65c8ed
fix(generator): encode routes and show error summary (#7518) 2020-06-16 17:53:29 +02:00
Pooya Parsa 2faa30259f chore(deps): update @nuxt/loading-screen to 2.0.0-rc.4 2020-06-16 15:48:10 +02:00
renovate[bot] f8c0b781ab
chore(deps): update dependency rc9 to v1 (#7528)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-16 15:44:18 +02:00
renovate[bot] 833ea4d585
chore(deps): update dependency destr to v1 (#7525)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-16 14:41:41 +02:00
renovate[bot] f2f50115d7
chore(deps): update all non-major dependencies (#7512)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-16 11:28:39 +02:00
Sébastien Chopin 68d498b2f4
fix(generator): handle nuxt build `--no-build` (#7523) 2020-06-15 21:42:42 +02:00
Bogdan Gradinariu 3082567200 fix(core): improve module not found error (#7267)
Co-authored-by: pooya parsa <pooya@pi0.ir>
2020-06-15 17:45:50 +02:00
Xin Du (Clark) 8fb196c5d5
fix(modern): modern is wrongly enalbed in full static (#7509)
[release]
2020-06-12 21:36:08 +02:00
renovate[bot] b13f9355dd
chore(deps): update dependency jiti to ^0.1.9 (#7508)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-12 20:41:40 +02:00
Sébastien Chopin 44f471f141 hotfx(vue-app): app is not defined
[release]
2020-06-12 19:41:41 +02:00
renovate[bot] b19006d1c7
chore(deps): update all non-major dependencies (#7494)
[release]
2020-06-12 15:30:36 +02:00
Dumitru Motpan c540b133a4
feat(server): add new `render:beforeResponse` hook (#7469) 2020-06-12 15:21:20 +02:00
Kevin Marrec 752d587ef1
fix(types): router types fix for vue-router 3.3.3 (#7503) 2020-06-12 15:15:50 +02:00
Xin Du (Clark) 245d32d0dc
fix(modern): modulepreload not work in generate (#7498) 2020-06-12 10:18:16 +01:00
Xin Du (Clark) db65c2eb6b
feat: `createRequire` option and disable esm for jest (#7476) 2020-06-11 15:59:13 +02:00
renovate[bot] 87f1a8d144
chore(deps): update dependency serialize-javascript to v4 (#7482)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-11 11:30:49 +02:00
Pim df7e1ad3a2
fix(vue-renderer): fix meta injection when ssr renderer generates a spa page (#7439) 2020-06-10 17:26:50 +02:00
Sébastien Chopin 7c6e170a89
fix: handle router.base for crawler and serve (#7486)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-06-10 09:51:29 +02:00
renovate[bot] 4ca3c769e3
chore(deps): update all non-major dependencies (#7487)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-10 09:30:01 +02:00
pooya parsa 796282ceec
feat: improve production debugging dx (#7463) 2020-06-09 21:45:52 +02:00
renovate[bot] 2abbb9957d
chore(deps): update all non-major dependencies (#7480)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-09 20:03:23 +02:00
Johannes Lamberts 846cfee170
fix(webpack): reduce false negatives in nodeExternals (#7462) (#7464) 2020-06-09 18:40:39 +02:00
Jonas Galvez 0acfc78932
fix(vue-app): prevent double layout execution (#5703) (#7442) 2020-06-09 18:39:51 +02:00
renovate[bot] cbbf6652cd
chore(deps): update all non-major dependencies (#7457)
[release]
2020-06-08 13:01:40 +02:00
Deniz Temizer b45f284771
chore(cli): enhance generate no-build description (#6031) (#7460) 2020-06-04 20:41:09 +02:00
Ahad Birang be726e42b6
feat(generator): allow excluding exported pages using `export:page` hook (#7455) 2020-06-03 21:35:28 +02:00
pooya parsa 1e4ce5055e
refactor: ad-hoc modules (#7452) 2020-06-03 21:34:10 +02:00
renovate[bot] 15bc5b06e6
chore(deps): update all non-major dependencies (#7453)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-03 21:27:08 +02:00
Daniel Roe 0610f0b343
feat(webpack): allow babel plugins to be defined by function (#7443) 2020-06-03 21:26:37 +02:00
renovate[bot] 8933d375e9
chore(deps): update all non-major dependencies (#7447)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-02 12:37:55 +02:00
renovate[bot] 484e70fdd8
chore(deps): update all non-major dependencies (#7433)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-01 18:48:09 +02:00
Pooya Parsa 35f3ad7de3
fix: use different port for loading-screen sse (#7286)
* chore: read sse base from _loadingScreenBaseURL

* bump: @nuxt/loading-screen to 2.0.0-rc.1
2020-06-01 17:30:26 +02:00
Pooya Parsa a544fc7241
types: move `@nuxt/types` to nuxt mono-repo (#7432)
[release]
2020-05-28 21:30:02 +02:00
Pooya Parsa 3db31abb05
feat(config): support `.nuxtrc` (#7430)
[release]
2020-05-28 18:27:49 +02:00
Alexander Lichter c14471681c
fix(generator): respect `options.router.trailingSlash` for crawler (#7431) 2020-05-28 18:26:27 +02:00
renovate[bot] 2e711c143b
chore(deps): update all non-major dependencies (#7427)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-28 16:46:15 +02:00
renovate[bot] 48b11c095f
chore(deps): update all non-major dependencies (#7424)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-28 13:16:14 +02:00
renovate[bot] 5c348c0618
chore(deps): update all non-major dependencies (dev) (#7419)
* chore(deps): update all non-major dependencies

* update size limits
2020-05-27 23:27:20 +02:00
Pooya Parsa a82f8d8b1f
feat(generator): `export:route` hook and `setPayload` (#7422)
* feat(generator): shared payload support for `nuxt export`

* feat: add `export:` hooks for upward compatibility

* fix: use setPayload to avoid breaking usage

* test: update test

* fix: deep assign

* chore: update tests

* fix: route payload has more periority than shared one

* test: update generator hook tests

* lint: remove unnecessary import
2020-05-27 16:51:51 +02:00
Kevin Marrec 618eb5fad0
fix(config): remove runtimeConfig string fallback (#7421)
[release]
2020-05-27 15:38:29 +02:00
Pooya Parsa 6cbcd59d4e
feat(config): improved runtimeConfig (#7420)
* fix: ensure interpolate value is a string

* feat: allow native values from dotenv

* test: update test for regression on native value check
2020-05-27 12:38:39 +02:00
renovate[bot] 2383bcbd0f
chore(deps): update all non-major dependencies (#7417)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-26 21:02:56 +02:00
renovate[bot] ca32427d2e
chore(deps): update all non-major dependencies (#7403)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-25 21:33:34 +02:00
Sébastien Chopin f13b3752b2
feat: experimental nuxt telemetry (#7408)
[release]

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: pooya parsa <pooya@pi0.ir>
2020-05-22 20:51:53 +02:00
Pooya Parsa 1e53e38f8d
refactor: inline staticAssetsBase in state chunk for full-static (#7401)
* refactor(vue-app): use NUXT.serverRendered instead of NUXT.spa

* refactor: inline staticAssetsBase into state.js chunk

* revert: unwanted change

[release]
2020-05-20 19:31:31 +02:00
Sébastien Chopin 60ae0fb011
fix(generator): keep generating pages in SPA (#7400)
* fix(generator): keep generating pages in SPA

* chore: fix lint error

Co-authored-by: pooya parsa <pooya@pi0.ir>
2020-05-20 17:55:54 +02:00
Pooya Parsa 0bdc71c8d8
refactor(config): alias `export` to `generate` (#7399)
* refactor: alias option.export to options.generate

* chore: keep same references
2020-05-20 17:43:25 +02:00
renovate[bot] 51411268af
chore(deps): update all non-major dependencies (#7385)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-20 17:23:32 +02:00
Pooya Parsa 6a6794e020
feat: components (#7374)
[release]
2020-05-18 13:58:48 +02:00
Pooya Parsa 0337932115
feat: runtime config and built-in dotenv support (#7312)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2020-05-18 10:21:15 +02:00
Sibbngheid 0c81c52c41
fix: set build indicator icon height for ie11 (#7378) 2020-05-17 21:42:00 +02:00
Xin Du (Clark) b1b14033fb
fix(modern): wrong assets mapping in ssr client modern mode (#7382) 2020-05-17 21:41:07 +02:00
Xin Du (Clark) ffb9c65f46
feat(ssr): add non async split chunk to preload scripts (#7383) 2020-05-17 21:39:17 +02:00
Sébastien Chopin f4f6b1912b fix(vue-app): catch error on full static for store mutations
[release]
2020-05-17 00:04:17 +02:00
Sibbngheid 7cf4edba60
fix: set build indicator icon height for ie11 (#7377) 2020-05-16 19:56:08 +02:00
Pim 224c3794ae
fix(vue-renderer): base tag should be before any link or script tag (#7376) 2020-05-16 18:03:24 +02:00
Pooya Parsa 925abf8123
chore(pkg): update rollup and dependencies (#7373)
* chore(pkg): show build error loc

* fix(cli): add nuxt serve dependencies

* chore: update rollup resolve and commonjs plugins to latest

* test: mock listener for nuxt serve
2020-05-16 15:07:56 +02:00
renovate[bot] cdf04f4002
chore(deps): update all non-major dependencies (#7363)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-16 12:31:59 +02:00
Sébastien Chopin 9b29124d31
feat(server): add unload method support for serverMiddleware (#7358)
* feat: add unload method support for serverMiddleware

* chore: update test

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-05-13 17:16:09 +02:00
Tim van den Eijnden 2e5184688f
fix(generator, builder): empty build and dist directories instead of remove (#7361) 2020-05-13 16:46:13 +02:00
renovate[bot] c74fb41bde
chore(deps): update all non-major dependencies (#7347)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-13 12:06:13 +02:00
Pooya Parsa 42406d6075
feat: store and replay vuex mutations for static target (#7350)
* feat: store and replay vuex mutations for static target

* test: add full-static fixture

* perf: clean store subscription before render

* fix: record mutations after nuxtServerInit and middleware
2020-05-12 13:05:24 +02:00
Clark Du 498f408d9a chore(deps): update devdependency eslint to v7 2020-05-11 09:21:54 +01:00
renovate[bot] 8af076d5e6
chore(deps): update all non-major dependencies (dev) (#7326) 2020-05-11 09:14:28 +01:00
Sébastien Chopin 8e2d9764e2
fix(generator): remove trailingSlash for chunkId (#7336)
[release]
2020-05-08 18:10:06 +02:00
Pooya Parsa 631be3a1dd
fix(generator): improve error handling when build does not exists (#7335)
[release]
2020-05-08 16:37:42 +02:00
Sébastien Chopin 80396cbf41 fix(generator): avoid generating route with extension 2020-05-08 16:27:15 +02:00
Sébastien Chopin e87bad4cce
fix(cli): add back flags for generate and add _export flag (#7334) 2020-05-08 16:15:26 +02:00
Sébastien Chopin 29ebccaa65
fix(generator): avoid error if nuxt/config.js does not exists in buildDir (#7332) 2020-05-08 13:55:39 +02:00
Sébastien Chopin 917adc0618
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 21:08:01 +02:00
Jimmy a0db3644f6
fix(vue-app): allow background customization for default loading template (#7162) 2020-05-07 13:09:39 +02:00
Xin Du (Clark) 789f0e6555
chore(dep): upgrade html-webpack-plugin to v4 (#7119) 2020-05-07 11:52:26 +01:00
renovate[bot] c37c3d4da0
chore(deps): update all non-major dependencies (dev) (#7269) 2020-05-07 09:33:52 +01:00
Xin Du (Clark) f1d832018a
chore(test): upgrade vue test utils to v1 (#7321) 2020-05-07 09:07:21 +01:00
Mathieu TUDISCO 6040257ca3
fix(webpack): allow hmr client path to be set (#7318) 2020-05-05 23:56:03 +02:00
Xin Du (Clark) 8c7228f1e8
test: update jest to v26 (#7319) 2020-05-05 23:53:07 +02:00
Yugo Ogura 37271f8ac4
feat(server): support csp `report-uri` (#7307) 2020-05-04 20:24:17 +02:00
Xin Du (Clark) c2c7081dc2
fix(webpack): use non-eval sourcemap with csp and `unsafe-eval` script policy (#7305) 2020-05-03 21:10:09 +02:00
Xin Du (Clark) 2bd2c3853d
feat(modern): remove inlined safari fix in csp mode (#7306) 2020-05-03 20:15:24 +02:00
Xin Du (Clark) ab3ff4de00
fix(babel): not override presets if babelrc is true (#7297) 2020-05-01 14:23:08 +02:00
Kevin Marrec e089ac649f
fix(vue-app): `sanitizeComponent` import regression with features disabled (#7271) 2020-04-24 18:05:55 +02:00
Xin Du (Clark) 1ce8041abe
feat(config): add configOverrides for loadNuxt and loadNuxtConf… (#7263) 2020-04-24 09:59:56 +01:00
renovate[bot] 5516a2182b
chore(deps): update all non-major dependencies (dev) (#7255)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-24 09:13:20 +01:00
renovate[bot] 67b8020c11
chore(deps): update dependency caniuse-lite to ^1.0.30001045 (d… (#7248) 2020-04-21 09:27:20 +01:00
renovate[bot] 3a6dbdd656
chore(deps): update all non-major dependencies (dev) (#7234) 2020-04-20 21:13:50 +01:00
renovate[bot] cf205e7902
chore(deps): update all non-major dependencies (#7188)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-17 11:26:43 +02:00
Sébastien Chopin 479e3ffefb
feat(vue-app): inject into plugins context (#7212) 2020-04-14 11:27:13 +02:00
Nicolas PENNEC a2495a6873
chore: fix typos (#7219) 2020-04-14 11:26:40 +02:00
Nicolas PENNEC 1002d3f456
feat(server): add custom HTTP headers into error response (#7214) 2020-04-13 20:58:53 +02:00
Xin Du (Clark) c02ded2d86
refactor(config): move `build.crossorigin` to `render.crossorigin` (#7187) 2020-04-07 11:38:49 +02:00
Jimmy 6b1faaed80
feat(vue-renderer): add head `<base>` meta for spa (#7170) 2020-04-07 11:11:00 +02:00
renovate[bot] 20f086d0ce
chore(deps): update all non-major dependencies (dev) (#7179) 2020-04-06 23:14:25 +01:00
Xin Du (Clark) 16b9c157bf
feat(webpack): add mjs to babel-loader (#7178) 2020-04-05 15:41:21 +02:00
renovate[bot] 21b39fc701
chore(deps): update all non-major dependencies (dev) (#7157) 2020-04-05 11:58:52 +01:00
Eunjae Lee 4f6f7fe1cd
feat(vue-renderer): pass `renderContext` to `vue-renderer:ssr:templateParams` hook (#7168) 2020-04-02 11:28:57 +02:00
Xin Du (Clark) 728ab8841b
feat(babel-preset-app): add `bugfixes` option (#7144) 2020-03-30 10:48:59 +01:00
Pooya Parsa 318aad2aed
fix(server): HMR for sub-app serverMiddleware without path (#7146) 2020-03-27 22:30:43 +01:00
Pooya Parsa 06073697f4
fix(vue-app): sanitize layouts after resolve for `splitChunks.layout` (#7139) 2020-03-27 14:08:48 +01:00
renovate[bot] d46c2dd4ff
chore(deps): update all non-major dependencies (#7136)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-27 13:57:09 +01:00
Pooya Parsa 9ef58fae63
fix(core): join with os native sep in resolver (#7131) 2020-03-27 13:56:40 +01:00
Jt Whissel 51b5bf565b
feat(builder): ignore option to function the same as `.nuxtignore` (#7132) 2020-03-27 11:53:23 +01:00
renovate[bot] f18e241f70
chore(deps): update all non-major dependencies (dev) (#7125) 2020-03-26 16:30:01 +00:00
pooya parsa 8d355956d4 v2.12.1
[release]
2020-03-25 20:20:50 +01:00
Pooya Parsa 0f27f80c0c
fix(vue-app): avoid multiple `$fetch` calls (#7129)
Co-authored-by: Aster <duda84@gmail.com>
2020-03-25 19:40:39 +01:00
Sébastien Chopin b82f8d1640
fix: set default name to layout to avoid multi mounted (#7128) 2020-03-25 19:14:17 +01:00
renovate[bot] a474c00aae
chore(deps): update dependency webpack to ^4.42.1 (#7121) 2020-03-24 10:42:43 +01:00
renovate[bot] 60f1aa93bd
chore(deps): update all non-major dependencies (dev) (#7100) 2020-03-23 11:24:29 +00:00
Pooya Parsa c8e7397d07
fix(vue-app): use `globals.nuxt` for fetch client mixin (#7103) 2020-03-18 11:30:50 +01:00
pooya parsa 4b34941df8 fix(builder): ensure entry is in graph for HMR (#7097) 2020-03-18 11:05:37 +01:00
pooya parsa 205a089f83 v2.12.0 2020-03-17 17:43:35 +01:00
Jason Poindexter 1f5d489850
fix(vue-app): middleware not executing on double browser back navigation (#6775)
fixes #6716.
2020-03-13 22:26:35 +01:00
Xin Du (Clark) a7052b637b
feat(vue-app): trigger watchParam when param is changed in same route (#6244) 2020-03-13 21:28:42 +01:00
Xin Du (Clark) 52caef2053
feat(core): better module not found handling (#7079)
Co-authored-by: pooya parsa <pooya@pi0.ir>
2020-03-13 21:25:53 +01:00
Pooya Parsa f20d932c4d
feat: allow disabling loading-screen (#6272) 2020-03-13 21:23:33 +01:00
pooya parsa 87dc99e8e5 chore(deps): update all non-major dependencies 2020-03-13 15:03:36 +01:00
Xin Du (Clark) 78bce82b2f
refactor(babel-preset-app): use `@babel/helper-compilation-targets` instead of deprecated api (#7071) 2020-03-12 19:13:04 +01:00
renovate[bot] 29587daf1f
chore(deps): update all non-major dependencies (#7073)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-12 18:59:48 +01:00
pooya parsa 5a6cde3ebc regression: read prefix from handle fn as well
fixes #7028
2020-03-12 18:33:22 +01:00
pooya parsa f1e2362456 chore: remove new fetch warning 2020-03-12 15:40:03 +01:00
renovate[bot] 2afddf03c1
chore(deps): update all non-major dependencies (dev) (#7066) 2020-03-10 22:43:29 +00:00
Xin Du (Clark) 750676dd31
fix(babel-preset-app): TypeError when import cjs in webpack building (#7070) 2020-03-10 22:09:46 +01:00
renovate[bot] 1a34e224d4
chore(deps): update all non-major dependencies (#7052)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-09 14:41:20 +01:00
renovate[bot] 2c4327b867
chore(deps): update all non-major dependencies [release] (#7039) 2020-03-02 19:15:30 +01:00
Pooya Parsa 903c3de5b6
feat: expose webpack config (#7029) 2020-03-02 19:15:00 +01:00
Jonas Galvez a3fdba885e
chore(vue-app): improve missing inject value error message (#7032) 2020-02-29 20:16:43 +01:00
renovate[bot] ee2cceb9b2
chore(deps): update all non-major dependencies (dev) (#7010) 2020-02-27 15:09:23 +00:00
renovate[bot] 07906d0b9d
chore(deps): update all non-major dependencies (#7003)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-26 13:22:04 +01:00
Pooya Parsa 6e09e7824d
fix(core): correct deprecated hooks (#7002) 2020-02-25 17:15:40 +01:00
Mark Honeychurch 084a1ca1af
chore(builder): analyze mode warning rewording (#6924) 2020-02-25 00:16:43 +01:00
Xin Du (Clark) 16587029d7
feat: add crossorigin for normal ssr (#6950) 2020-02-24 22:58:24 +00:00
renovate[bot] c785f6e22e
chore(deps): update dependency caniuse-lite to ^1.0.30001030 (#6994)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-24 23:49:38 +01:00
Xin Du (Clark) 10ac6aed9a
feat(wepack): support `@import` using `~assets` in css files (#6987) 2020-02-24 23:47:43 +01:00
renovate[bot] 6d79206a68
chore(deps): update dependency serialize-javascript to v3 (#6977)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-24 22:41:53 +01:00
HG c325882e1f
fix(core): Provide the correct name of routeContext hook (#6959) 2020-02-18 17:04:02 +00:00
renovate[bot] bfc91f9682
chore(deps): update all non-major dependencies (#6978) 2020-02-18 17:01:11 +00:00
renovate[bot] 19fd3e4932
chore(deps): update all non-major dependencies (#6956) 2020-02-16 14:58:21 +01:00
Pim bfad1e627b
perf(vue-renderer): early return `render` when redirect happens (#6973) 2020-02-16 14:20:08 +01:00
Sébastien Chopin b71eaee879 chore: use data-fetch-key instead of data-ssr-key 2020-02-12 16:41:23 +01:00
Matteo Rigon 539c865533
fix(vue-app): use child transition name when navigating to parent (#6946) 2020-02-11 15:06:37 +01:00
Xin Du (Clark) 13cc924f02 refactor: use scope variable memo for modern utils (#6954) 2020-02-09 11:44:54 +00:00
Xin Du (Clark) 6ae7718a42
fix(utils): eliminate side effect from modern utils (#6953)
[release]
2020-02-09 12:17:39 +01:00
Pooya Parsa 65b97edf03 chore: add explicit dependencies 2020-02-06 14:04:51 +01:00
Pooya Parsa 39d33686f4 chore: mark jsdom as external to remove warning 2020-02-06 14:02:05 +01:00
Pooya Parsa 1df1874f8a fix(pkg): add explicit dependencies 2020-02-06 13:57:42 +01:00
Pooya Parsa d83f697c15 chore: sort package.json 2020-02-06 13:32:56 +01:00
renovate[bot] 917782a642
chore(deps): update all non-major dependencies (#6941)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-04 19:36:53 +01:00
Sébastien Chopin 6db325c321
feat(vue-app): new fetch syntax (#6880) 2020-02-04 19:36:22 +01:00
wppd e271aa0a0a
chore(vue-app): pass error as param to nuxt-loading fail method (#6939) 2020-02-03 16:41:37 +01:00
renovate[bot] 5a80599ffa
chore(deps): update all non-major dependencies (#6932) 2020-02-02 15:05:49 +00:00
renovate[bot] 0bd794d1c1
chore(deps): update all non-major dependencies (#6926)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-01-31 00:26:49 +01:00
renovate[bot] 08a3646d47 chore(deps): update all non-major dependencies (#6910) 2020-01-27 20:56:45 +00:00
renovate[bot] 73a4a8081a chore(deps): update dependency chalk to v3 (#6673)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
2020-01-24 01:06:49 +00:00
James George 3c4f9e4574 chore(cli): display listening urls after build (#6904)
closes #6899
2020-01-23 13:13:14 +01:00
renovate[bot] 0487ac3c25 chore(deps): update all non-major dependencies (#6898)
[release]
2020-01-21 14:06:21 +01:00
Pooya Parsa 304fb488dc fix(utils): early return if id is external 2020-01-21 14:05:48 +01:00
Pooya Parsa d8b84fe263 fix(utils): handled undefined cjs entries
[release]
2020-01-21 13:51:58 +01:00
Pooya Parsa a84f31d2a9
chore: serverMiddleware HMR improvements (#6896)
* chore(server): fallback route for resolveMiddleware

* chore(server): support express HMR

[release]
2020-01-20 19:28:52 +01:00
Clark Du fdd9a7a051 test: avoid unexpected outside stderr assertion count 2020-01-19 10:26:44 +00:00
renovate[bot] a715a038f4 chore(deps): update dependency extract-css-chunks-webpack-plugin to ^4.7.4 (#6886) 2020-01-19 09:36:13 +00:00
Pooya Parsa 00d95903c6
fix(webpack): provide global `URL` and `URLSearchParams` (#6864) 2020-01-19 09:37:06 +01:00
Pooya Parsa 2707bdb37e
feat: improve programatic usage (#6868) 2020-01-19 09:36:06 +01:00
Pooya Parsa 8907e1553f
feat: HMR support for serverMiddleware (#6881) 2020-01-19 09:34:35 +01:00
renovate[bot] 6891c31d81 chore(deps): update all non-major dependencies (#6879) 2020-01-17 15:26:25 +01:00
Pim 708ae3018e fix(generator): log message or full error for unhandled error without stack trace (#6882) 2020-01-17 10:18:12 +01:00
Vladlen e91a441f2c fix(vue-app): add fallback context for error (#6854)
Co-Authored-By: Sébastien Chopin <seb@nuxtjs.com>
2020-01-16 18:09:16 +01:00
renovate[bot] e3ba6c290d chore(deps): update dependency vue-router to ^3.1.5 (#6876) 2020-01-15 23:47:47 +00:00
renovate[bot] 739b53a0f8 chore(deps): update all non-major dependencies (#6873) 2020-01-15 10:26:13 +00:00
renovate[bot] decb11ac28 chore(deps): update all non-major dependencies (#6867) 2020-01-14 21:03:42 +00:00
Pim 75e00fe69f feat(cli): pass context when nuxt.config exports a function (#6855) 2020-01-13 17:35:08 +01:00
renovate[bot] 1a48059438 chore(deps): update all non-major dependencies (#6859) 2020-01-13 11:48:10 +01:00
renovate[bot] 9aa8db4e97 chore(deps): update all non-major dependencies (#6849) 2020-01-11 19:31:14 +00:00
Sébastien Chopin c9beac3c7b fix(vue-app): resolve leave transition on child routes (#6803) 2020-01-10 21:45:13 +01:00
404-NOTFOUND af75aa86e1 perf(vue-renderer): don't serialize session when `injectScripts` is false (#6846) 2020-01-10 21:43:50 +01:00
Renovate Bot 8a4f9a5036
chore(deps): update all non-major dependencies 2020-01-05 01:50:33 +00:00
renovate[bot] aada6e50d9 chore(deps): update dependency consola to ^2.11.3 (#6839) 2020-01-01 12:42:55 +01:00
Renovate Bot 306e9602d6
chore(deps): update all non-major dependencies 2019-12-31 00:14:35 +00:00
Renovate Bot 14e6eb6b27
chore(deps): update all non-major dependencies 2019-12-29 22:19:43 +00:00
Sébastien Chopin 0cb2df73a0 fix(vue-app): move head to index to avoid global state (#6807) 2019-12-18 15:27:30 +01:00
Pooya Parsa 7af9ec8c23 v2.11.0 2019-12-17 11:22:18 +01:00
Pooya Parsa 311ff27ba6 test: mock semver/functions/satisfies 2019-12-17 11:00:07 +01:00
renovate[bot] 51b3163c2a chore(deps): update dependency consola to ^2.11.1 (#6800) 2019-12-17 10:59:30 +01:00
renovate[bot] 929779555b chore(deps): update dependency semver to ^7.1.0 (#6797) 2019-12-17 10:38:03 +01:00
Pooya Parsa 4669b6b58d test: semver is not mockable 2019-12-16 22:59:20 +01:00
renovate[bot] bb5f84c601 chore(deps): update all non-major dependencies (#6779) 2019-12-16 22:21:58 +01:00
crutch12 b2a35d21d7 fix(utils): add catch statement to non function block in `serializeFunction` (#6776) (#6777) 2019-12-16 22:20:28 +01:00
renovate[bot] 0ef6c72a9c chore(deps): update dependency semver to v7 (#6789) 2019-12-16 21:33:47 +01:00
Cain Hall ae769ce763 fix(utils): flatRoutes regex for nested routes with trailing slash enabled (#6791) 2019-12-16 21:19:40 +01:00
Xin Du (Clark) e999060da5 refactor(server): only append not empty allowed sources to csp (#6771) 2019-12-16 21:16:51 +01:00
Renovate Bot 3938e58110
chore(deps): update all non-major dependencies 2019-12-09 18:49:52 +00:00
Xin Du (Clark) e61f9c3044
Merge branch 'dev' into allowed-sources-test 2019-12-08 10:15:19 +08:00
renovate[bot] 3cc4770c22 chore(deps): update dependency serialize-javascript to ^2.1.1 (#6769) 2019-12-08 10:11:48 +08:00
Xin Du (Clark) e2a9926d3e
Merge branch 'dev' into allowed-sources-test 2019-12-08 10:02:53 +08:00
renovate[bot] d427e4abc3 chore(deps): update all non-major dependencies (#6761) 2019-12-08 02:02:34 +00:00
Xin Du (Clark) 8616822804
Merge branch 'dev' into allowed-sources-test 2019-12-03 17:30:16 +00:00
renovate[bot] 4b8fc7de51 chore(deps): update all non-major dependencies (#6748)
* chore(deps): update all non-major dependencies

Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
2019-12-03 16:48:25 +00:00
Daniel Roe 697407d6b4
test: pass array to allowedSources 2019-11-30 12:49:00 +00:00
renovate[bot] 81de57f11c chore(deps): update dependency extract-css-chunks-webpack-plugi… (#6738) 2019-11-28 09:23:35 +00:00
Xin Du (Clark) 75a29c8b13 global name is wrongly set to nuxt-edge (#6736)
[release]
2019-11-27 20:51:48 +01:00
Xin Du (Clark) e8aca9eb11 chore: update @nuxtjs/eslint-config to v2 and fix lint errors (#6732) 2019-11-26 23:42:39 +01:00
Xin Du (Clark) d83761028e feat(vue-app): upgrade `vue-router` to 3.1.x (#6722) 2019-11-26 23:41:19 +01:00
renovate[bot] dd0b7a8b0e chore(deps): update all non-major dependencies (#6724) 2019-11-25 12:09:13 +00:00
Alexander Lichter 75bb0884cb feat: optionally strip non-client or non-server code (#6149) 2019-11-24 16:39:45 +01:00
Rafał Chłodnicki e9945b0896 fix(vue-app): pass router mode to `getLocation` (#6658) 2019-11-24 14:26:33 +01:00
Ahad Birang bb9427ee74 feat(vue-renderer): support evaluation in templates (#6505) 2019-11-24 13:31:21 +01:00
Xin Du (Clark) 9ada4e63a9 feat(config): add `ignoreOptions` for `node-ignore` (#6597) 2019-11-24 13:28:37 +01:00
renovate[bot] 2f76e8e875 chore(deps): update all non-major dependencies (#6709) 2019-11-23 09:06:10 +00:00
Mohammad M. Shahbazi 6cc962fa16 fix: context.route issue in plugins and splitChunks.pages === false (#6685) 2019-11-19 09:27:54 +00:00
renovate[bot] 587d1e9765 chore(deps): update all non-major dependencies (#6708) 2019-11-19 09:24:15 +00:00
renovate[bot] f54e9b211f chore(deps): update dependency caniuse-lite to ^1.0.30001010 (#6694) 2019-11-14 12:34:38 +00:00
renovate[bot] 5567d73741 chore(deps): update all non-major dependencies (#6689) 2019-11-13 11:03:39 +00:00
Pim 701f2d033b fix(vue-app): apply path-to-regexp options to tokensToFunction… (#6683) 2019-11-12 16:39:34 +00:00
renovate[bot] abd82805a7 chore(deps): update all non-major dependencies (#6677) 2019-11-12 10:42:05 +00:00
renovate[bot] adce605379 chore(deps): update all non-major dependencies (#6665) 2019-11-09 22:18:39 +00:00
renovate[bot] 95303180a8 chore(deps): update all non-major dependencies (#6653)
Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
2019-11-05 19:04:27 +00:00
Xin Du (Clark) afb38fe492
fix(vue-app): layout in error.vue not work for Vue.extend component (#6650) 2019-11-05 17:53:39 +00:00
renovate[bot] 8ee99bc288 chore(deps): update all non-major dependencies (#6647) 2019-11-03 15:36:54 +00:00
renovate[bot] 867b520801 chore(deps): update dependency caniuse-lite to ^1.0.30001006 (#6633) 2019-10-30 16:30:29 +00:00
Daniel Roe 4f0aa74ef2 perf(webpack): prefer using `contenthash` (#6632) 2019-10-29 19:06:14 +01:00
Sébastien Chopin 9f921fe136 fix(vue-app): add `prefetched` class to `<nuxt-link>` after chunk loaded (#6623) 2019-10-28 15:32:24 +01:00
renovate[bot] d2d0e11455 chore(deps): update all non-major dependencies (#6603) 2019-10-28 14:57:09 +01:00
Pooya Parsa f6aa45dda6 v2.10.2 [release] 2019-10-21 23:16:29 +02:00
renovate[bot] 3d51c0341b chore(deps): update dependency glob to ^7.1.5 (#6602) 2019-10-21 23:09:36 +02:00
renovate[bot] 01e447e3a5 chore(deps): update all non-major dependencies (#6599) 2019-10-21 10:08:23 +02:00
renovate[bot] a3f1957adc chore(deps): update dependency execa to v3 (#6563) 2019-10-19 10:40:26 +02:00
Xin Du (Clark) de934844e2 fix(webpack): enable devtool for dev mode (#6495) 2019-10-19 10:23:57 +02:00
Xin Du (Clark) 8391753484 fix(webpack): normalize devtool for terser compatibility (#6566) 2019-10-19 10:21:42 +02:00
PedroD 257ae2279b fix(config): typo in `unsafeInlineCompatibility` name (#6583) 2019-10-19 10:15:07 +02:00
Pim b031fac121 fix: collapsed ssr log (#6590) 2019-10-18 10:36:49 +01:00
renovate[bot] 2b6589cca8 chore(deps): update all non-major dependencies (#6573) 2019-10-17 20:16:52 +01:00
renovate[bot] 3cde4c7887 chore(deps): update all non-major dependencies (#6568) 2019-10-15 21:40:44 +01:00
renovate[bot] a42453bb0c chore(deps): update all non-major dependencies (#6550) 2019-10-14 22:05:14 +01:00
renovate[bot] ed4a222794 chore(deps): update dependency postcss-import-resolver to v2 (#6552) 2019-10-13 20:32:46 +01:00
Pooya Parsa 624c4c058e v2.10.1 [release] 2019-10-11 10:08:40 +02:00
renovate[bot] 9bfda1c560 chore(deps): update all non-major dependencies (#6545) 2019-10-11 09:50:09 +02:00
Pim 67d5601142 test: refactor cli integration tests (#6537) 2019-10-11 09:35:10 +02:00
Clark Du a0ef4a3736 Merge remote-tracking branch 'origin/2.x' into dev 2019-10-09 19:07:10 +01:00
Xin Du (Clark) 6f2f13e7e7
chore(deps): upgrade execa to 2.1.0 (#6542) 2019-10-09 19:04:49 +01:00
Xin Du (Clark) 010bb20645
chore: upgrade babel packages to 7.6.3 (#6540) 2019-10-09 18:43:36 +01:00
Pim 91d7d02c13 chore(deps): upgrade vue-meta to v2.3.1 (#6539) 2019-10-09 17:39:46 +01:00
Xin Du (Clark) 0834903152 fix(vue-app, webpack): remove consola from client (#6504) 2019-10-08 11:06:29 +02:00
Yuki Terashima 2d27a4d2dc fix(utils): error when `router.trailingSlash` is `false` (#6515) 2019-10-08 10:48:52 +02:00
Alexander Lichter f28d12c913 fix(generator): remove trailing slash when no subFolders are used (#6362) 2019-10-08 10:47:13 +02:00
Xin Du (Clark) ed564c3bd8 fix(webpack): `chunkhash` and `contenthash` not work with `extractCSS` (#6520) 2019-10-08 10:34:40 +02:00
Dmitry Molotkov 136777de1d fix(cli): enable server for build when spa pages should be generated (#6525) 2019-10-08 10:33:42 +02:00
renovate[bot] 2b1366b965 chore(deps): update all non-major dependencies (#6496) 2019-10-08 10:31:09 +02:00
Pooya Parsa c17afa77a7 v2.10.0
[release]
2019-10-02 13:40:59 +02:00
renovate[bot] 0f8428fae7 chore(deps): update all non-major dependencies (#6494) 2019-10-01 19:36:12 +02:00
renovate[bot] 7286e83ff7 chore(deps): update dependency chokidar to ^3.2.0 (#6489)
[release]
2019-10-01 13:08:27 +02:00
Pim 49136bcd1b fix(core): clear resolver cache for project files dev mode (#6490) 2019-10-01 13:04:24 +02:00
Daniel Roe 46a7a67ad4 feat(cli, config): `cli.bannerColor` option (#6399) 2019-09-30 10:46:58 +02:00
Xin Du (Clark) 578d5d41f4 fix(vue-app): error page layout not correctly applied in client rendering (#6479) 2019-09-30 10:44:35 +02:00
renovate[bot] 950b48f118 chore(deps): update all non-major dependencies (#6472) 2019-09-29 11:28:19 +02:00
Jonas Galvez bdcc7dd341 feat(config): `serverMiddleware` as a simple key/value object (#6414) 2019-09-29 11:11:25 +02:00
Snir Shechter 92c7f4ed24 feat(builder): `followSymlinks` option to allow for symlinks (#6368) 2019-09-29 11:06:44 +02:00
Xin Du (Clark) d1df5c8124 fix(webpack): fix consola IE compatibility (#6298) 2019-09-29 11:02:22 +02:00
Pim 27e03531d6 feat(cli): catch build errors with `cli:buildError` hook (#6475) 2019-09-29 10:11:32 +02:00
Pim a2be217876 feat(webpack): use `vue-meta` browser build for client bundle (#6477) 2019-09-29 10:07:12 +02:00
Pim ffc005c014 fix(vue-app): pass vm also as arg to support arrow fns (#6473) 2019-09-29 10:06:26 +02:00
renovate[bot] 686720f0fc chore(deps): update dependency webpack-bundle-analyzer to ^3.5.2 (#6464) 2019-09-26 14:15:06 +02:00
Pooya Parsa 13331a02b4 fix(webpack): revert pause/resume 2019-09-26 14:13:43 +02:00
Alexander Lichter c202893b9e fix(webpack): correct sass options for `sass-loader@8` (#6460) 2019-09-26 14:10:54 +02:00
renovate[bot] 6f9687e963 chore(deps): update all non-major dependencies (#6456) 2019-09-26 09:51:08 +02:00
Pim 06a288376a fix(webpack): dont push to compilersWatching in callback (#6448) 2019-09-25 17:11:39 +02:00
Xin Du (Clark) 4ca253e0b8
chore: fix example in babel-preset-app readme 2019-09-23 16:23:25 +01:00
renovate[bot] cf9686405a chore(deps): update all non-major dependencies (#6443) 2019-09-22 21:25:53 +01:00
Xin Du (Clark) 95e043f167 fix(cli): server should not be initialized in nuxt build (#6441) 2019-09-20 20:49:38 +02:00
Pim 4e4aa4d5d4 feat(server): add config option to define etag hash function (#6438) 2019-09-20 20:49:16 +02:00
Xin Du (Clark) 75f8564cdc fix(babel-preset-app): use loose mode for babel class plugin (#6435) 2019-09-20 09:53:58 +02:00
renovate[bot] 2f0b33f5ed chore(deps): update dependency chokidar to ^3.1.1 (#6440) 2019-09-19 20:24:03 +01:00
Louis-Marie Michelin 7b3155347c feat(vue-app): add `prefetch` prop to `<nuxt-link>` (#6292) 2019-09-18 17:06:46 +02:00
renovate[bot] ac5066c4e0 chore(deps): update dependency terser-webpack-plugin to ^2.1.0 (#6434) 2019-09-18 16:48:11 +02:00
Xin Du (Clark) 7f57d83355 feat(webpack): upgrade `terser-webpack-plugin` to v2 (#6398) 2019-09-18 15:59:54 +02:00
renovate[bot] 622bd9989c chore(deps): update all non-major dependencies (#6407) 2019-09-18 15:56:51 +02:00
Pim b17f331fe5 feat: support setting (non-essential) vue-meta options by user (#6432) 2019-09-18 15:51:44 +02:00
Pim ec6ef6e425 fix(vue-app): fix asyncData hydration when features.transition: false (#6433) 2019-09-18 15:51:22 +02:00
Pim 3b9eddc223 fix(vue-app): clear idle callback (#6430) 2019-09-18 10:54:17 +02:00
Pim 2d0f28fa75 fix(vue-renderer): dont mutate options.head (#6429) 2019-09-17 15:14:10 +02:00
Pim 8f0f16b076 chore: lint vue-app templates (#6390) 2019-09-10 11:51:14 +02:00
Xin Du (Clark) 8ccca220ed fix(config): enable total timing by default when `server.timing` is enabled (#6371) 2019-09-09 16:44:36 +02:00
Xin Du (Clark) eadde4e88c fix(config, vue-app): add module declaration for `config` and `vue-app` (#6379) 2019-09-09 09:31:42 +02:00
renovate[bot] 794536e08f chore(deps): update all non-major dependencies (#6372)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-09-07 23:10:23 +01:00
Pim 174c13d56c feat(vue-app): support configurable features (#6287) 2019-09-05 17:15:27 +02:00
Kevin Marrec 05a6efd1eb chore: rename setup hook to run:before (#6363) 2019-09-05 10:45:39 +02:00
renovate[bot] a972849406 chore(deps): update dependency serialize-javascript to v2 (#6359) 2019-09-05 09:11:42 +01:00
Jonas Galvez 81f0c8af33 feat(builder): `extendPlugins` option and `builder:extendPlugins` hook (#6285) 2019-09-04 14:19:50 +02:00
Kevin Marrec bdcf4c8304 refactor(cli): call setup hook in run command with more args (#6353) 2019-09-04 12:06:34 +02:00
xxRockOnxx 519ced4c4a refactor(builder): await build.createRoutes to allow async functions inside it (#6352) 2019-09-04 12:00:58 +02:00
renovate[bot] c010addb34 chore(deps): update dependency webpack-dev-middleware to ^3.7.1 (#6345) 2019-09-03 21:37:38 +02:00
Xin Du (Clark) 2fc73cf119 refactor(babel-preset-app): simplify babel preset config (#6087) 2019-09-03 21:36:54 +02:00
Xin Du (Clark) f6ca2c77ed feat(webpack): add `webpack:config` hook (#6350) 2019-09-03 21:32:49 +02:00
renovate[bot] f1edd8220b chore(deps): update dependency upath to ^1.2.0 (#6344) 2019-09-03 11:31:56 +02:00
Pim ad223583fc feat(builder): add `builder:prepared` hook (#6329) 2019-09-02 15:26:21 +02:00
Pim e78e8b4b7d feat(builder): support adding custom middlewares (#6342) 2019-09-02 12:53:52 +02:00
Renovate Bot 88fb44c6df chore(deps): update dependency hable to ^2.3.2 2019-09-02 12:36:41 +02:00
Pim 0daaf87c83 feat(utils): export sort routes (#6277) 2019-09-01 18:24:21 +02:00
Pim 93a0924754 fix(vue-app): prevent looping on error during render of error page (#6217) 2019-09-01 16:58:56 +02:00
Alexander Lichter 7c90310166 feat(builder, router): enforce uniform trailing slash handling (#6331) 2019-09-01 16:37:25 +02:00
Xin Du (Clark) e9c4bcfee2
feat(vue-app): function watchQuery (#6297) 2019-08-31 19:23:11 +01:00
renovate[bot] 75f8d00b68 chore(deps): update all non-major dependencies (#6323) 2019-08-31 19:19:14 +01:00
Clark Du c8ee9a6608 v2.9.2 2019-08-28 12:32:12 +01:00
renovate[bot] 5a17342f09 chore(deps): update all non-major dependencies (#6314) 2019-08-28 11:56:50 +02:00
Xin Du (Clark) c14bb35aad
test: remove unnecessary generate (#6301) 2019-08-25 23:41:32 +01:00
Pim 3eb1710b6d test(vue-app): add template compiler helper (#6299) 2019-08-25 13:31:17 +01:00
Xin Du (Clark) d85d2fb612
Revert "feat: function watchQuery (#6245)" (#6296)
This reverts commit 3c61830a0d.
2019-08-25 10:53:23 +01:00
Xin Du (Clark) 3c61830a0d
feat: function watchQuery (#6245) 2019-08-25 10:12:59 +01:00
Pooya Parsa 7f542e08e5
fix(builder): apply overrides from app dir only (#6283)
[release]
2019-08-24 21:40:39 +04:30
Pooya Parsa f0ab042bf4
chore(cli): accept hooks (#6274) 2019-08-24 18:45:08 +04:30
Pooya Parsa 9ad02c4017
refactor(core): use hable (#6271) 2019-08-22 00:16:40 +04:30
Pooya Parsa 81b92b6395
fix: improve watching experience for generated files (#6257) 2019-08-21 23:34:04 +04:30
Dmitry Molotkov 1fda184990 fix(server): treat `https: null` as `https: undefined` (#6265) 2019-08-21 20:53:53 +04:30
Pim 662a409056 fix(vue-app): only overwrite leave listener when none provided or without done arg (#6264) 2019-08-21 16:06:52 +04:30
Pooya Parsa 3ca7eca7cf
fix(config): provide typescript backward compatibility (#6258) 2019-08-20 21:47:59 +04:30
renovate[bot] 6a06dfb39a chore(deps): update dependency serialize-javascript to ^1.8.0 (#6254) 2019-08-20 21:46:28 +04:30
Sébastien Chopin fda1b1b54b fix(vue-app): enforce default css when used with frameworks (#6255) 2019-08-20 20:45:36 +04:30
pooya parsa a11d971969 reorder package.json 2019-08-20 15:43:45 +04:30
pooya parsa 0157b971de v2.9.1 2019-08-20 15:41:35 +04:30
Kevin Marrec 7fc23cd434 fix(vue-app): provide typescript backward compatibility 2019-08-20 15:38:08 +04:30
pooya parsa ce3b456961 v2.9.0 2019-08-20 12:51:10 +04:30
Pim df424e56cb feat(vue-renderer): support prepend/append body tags during ssr for all allowed tag types (#6134) 2019-08-19 23:08:13 +04:30