Commit Graph

182 Commits

Author SHA1 Message Date
Xin Du (Clark)
fd0352cc8f
feat(postcss): support postcss v8 with explict postcss installation (#8546)
* feat(postcss): support postcss v8 with explict postcss installation

* fix options name

* use postcss.vendor to check postcss 8
2020-12-29 13:16:01 +01:00
Xin Du (Clark)
b2e38f5c92
fix(webpack): can't resolve absolute url in css (#8555) 2020-12-27 23:53:05 +00:00
Pooya Parsa
b4663d2bfb _fix(webpack): resolve from rootDir with higher periority
[release]
2020-12-23 11:47:56 +01:00
Pooya Parsa
d3ef163004 _fix(pnp): resolve module dependencies 2020-12-23 11:43:55 +01:00
Pooya Parsa
5bd4fe08c6 chore: fix pnp issues [release] 2020-12-23 01:37:44 +01:00
Pooya Parsa
4295c6ca26 _fix(webpack): resolve postcss plugins including package 2020-12-23 00:10:20 +01:00
pooya parsa
dec8f99fc3
feat: support plug-and-play, typescript runtime and native modules (#8389)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-12-22 18:07:50 +01:00
Pooya Parsa
a78427c165 v2.14.12 [hotfix] [release] 2020-12-16 14:21:30 +01:00
pooya parsa
a25bdd622d
fix: fix issues with url handling (#8494) 2020-12-16 14:12:16 +01:00
Pooya Parsa
07a6bbe2b0 chore: fix router base handling with dev-middleware (closes #8440)
[release]
2020-12-10 11:40:20 +01:00
Pooya Parsa
79c6cb5ee3 v2.14.11 [hotfix] 2020-12-10 00:25:44 +01:00
pooya parsa
966796fbdf
fix: fix issues with route normalization (#8462)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-12-10 00:19:31 +01:00
Pooya Parsa
85bb97906c v2.14.10 [hotfix] 2020-12-07 11:37:14 +01:00
pooya parsa
fc51ca3330
fix: normalize routes and decode resolved query (#8430) 2020-12-06 18:32:39 +01:00
Xin Du (Clark)
ab039f051a
feat: update all dependencies that require node 10.x (#8346) 2020-12-01 12:40:50 +01:00
padinko
da38f96f03
fix(webpack): allow transpiling package in nested node_modules (#8205) 2020-11-30 23:26:46 +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
pooya parsa
a3d836401c
fix: revert production js chunk names (#8012) 2020-09-09 10:49:31 +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
Alexander Lichter
a969e87014
chore: add avif format as image (#7961) 2020-08-25 15:10:22 +01:00
pooya parsa
44471ec9df
fix(webpack): avoid using node_modules for chunk names (#7906)
[release]
2020-08-14 23:59:54 +02:00
Ahad Birang
c609b4b93d
fix(webpack): support string values for corejsVersion (#7849) 2020-08-04 17:12:59 +02:00
Pooya Parsa
5909de70ea fix: enforce name for all groups to avoid regression (#7808) 2020-07-30 17:10:43 +02:00
pooya parsa
2e1025f2de
fix(webpack): avoid grouping with default name (#7808)
[release]
2020-07-30 16:22:03 +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
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
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
Ahad Birang
4f27cdded8
fix(webpack): font-family hex issue (#7763) 2020-07-26 17:48:58 +02:00
Pooya Parsa
5272a48ea9 refactor(server): externalsWhitelist ~> externalsAllowlist 2020-07-09 13:33:20 +02:00
Pooya Parsa
2e5bc24f44 chore(deps): update webpack-node-externals to 2.x 2020-07-09 12:55:18 +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
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
pooya parsa
1edac29eba
fix(webpack): use compact name for concatenated modules (#7639)
[release]
2020-06-30 19:47:42 +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
Denis Karabaza
a87218b745
fix(webpack): explicitly pass outputFileSystem to webpackDevMiddleware (#7613) 2020-06-26 14:55:45 +02:00
pooya parsa
796282ceec
feat: improve production debugging dx (#7463) 2020-06-09 21:45:52 +02:00
Johannes Lamberts
846cfee170
fix(webpack): reduce false negatives in nodeExternals (#7462) (#7464) 2020-06-09 18:40:39 +02:00
Daniel Roe
0610f0b343
feat(webpack): allow babel plugins to be defined by function (#7443) 2020-06-03 21:26:37 +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
Clark Du
498f408d9a chore(deps): update devdependency eslint to v7 2020-05-11 09:21:54 +01: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
Xin Du (Clark)
789f0e6555
chore(dep): upgrade html-webpack-plugin to v4 (#7119) 2020-05-07 11:52:26 +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)
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
Xin Du (Clark)
c02ded2d86
refactor(config): move build.crossorigin to render.crossorigin (#7187) 2020-04-07 11:38:49 +02:00
Xin Du (Clark)
16b9c157bf
feat(webpack): add mjs to babel-loader (#7178) 2020-04-05 15:41:21 +02:00