Sébastien Chopin
820f0fae1a
[WIP] Hooks: render:routeContext and render:routeDone ( #3773 )
...
* hooks: Add render:routeDone hook
* hooks: Deprecate render:context and add render:routeContext
* refactor: delegate context to routeContext
* test: Add test for render:routeDone hook
* lint: Fix lint issue
2018-08-21 18:35:46 +02:00
Tatsuyuki Ishi
716c04f4e9
Isolate client and server artifacts ( #3758 )
2018-08-20 18:04:55 +02:00
Jonas Galvez
8d21b60a24
Render dist options ( #3671 )
...
Picking up on [yet another abandoned PR](https://github.com/nuxt/nuxt.js/pull/2933/files ). Made all changes suggested by @clarkdo and wrote a test.
2018-08-10 10:34:55 +01:00
Alexander Lichter
52d9629bac
eslint: Prefer const over let ( #3650 )
2018-08-08 12:54:05 +02:00
Clark Du
3b5a4709e8
feat: support global command-line build and start ( #3647 )
...
With this pr, user can install nuxt globally, then start or build simple repos without npm /yarn install:
```bash
npm i nuxt-edge -g
nuxt dev/build/start
```
2018-08-07 19:50:04 +01:00
Jonas Galvez
3f1d634fb7
Consistent parens in arrow functions ( #3630 )
...
* Minor consistency enhancements
* Arrow parenthesis consistency
* Change linting rule
* Fix typo
* Update .eslintrc.js to only require parens for blocks
* Update style according to brace-only suggestion
* Remove --fix from lint
* Tweak no-loading time (failing test)
* Tweak no-loading time (failing test) (2)
* Tweak no-loading time (failing test) (3)
* Tweak no-loading time (failing test) (4)
* Tweak no-loading time (failing test) (5)
2018-08-06 02:12:44 +02:00
Clark Du
dbba872be2
misc: remove useless codes
2018-08-03 16:06:18 +01:00
Alexander Lichter
a37772f0f8
fix(csp): remove duplicate sha-256 hashes ( #3574 )
2018-07-26 15:48:28 +02:00
Clark Du
d98c98360a
refactor: smiplify csp
2018-07-01 23:43:30 +04:30
Clark Du
1958ba8953
chore: remove to-do which has been done
2018-06-13 09:41:18 +01:00
Pooya Parsa
1f0053c160
fix(renderer): fix problem with HTMLPlugin's minify option ( #3392 )
2018-06-01 15:53:57 +04:30
Michael
66030467d1
fix: add title before other meta for better SEO ( #3362 )
2018-05-23 11:17:47 +04:30
Clark Du
7514db73b2
feat: add hook for getting data before sending to client
2018-05-03 20:47:55 +01:00
Blake Kostner
45f3c60bd9
export server resourceMap
2018-04-10 11:16:47 -06:00
Pooya Parsa
e4ee624011
feat: improve esm handling
...
disables esm for nuxt modules
2018-04-05 13:08:54 +04:30
Pooya Parsa
0ca99426c9
chore: remove unnecessary scopes
2018-04-02 00:50:46 +04:30
Pooya Parsa
25741f5a1f
refactor: use consola for all console stuff
2018-03-31 21:21:55 +04:30
Clark Du
ef7a42649d
misc: improve coverage and packaging ( #3121 )
...
nuxt-start and nuxt/legacy are also coming!
2018-03-28 02:58:17 +04:30
Pooya Parsa
6234ae84c0
refactor(core): use strict mjs
2018-03-16 22:41:24 +03:30
Pooya Parsa
ec616f109b
refactor options
2018-03-16 20:53:15 +03:30
Pooya Parsa
53e98a958c
feat: rewrite core to esm
2018-03-16 19:42:06 +03:30
Clark Du
7bc3ac501b
refactor: add timeout in renderAndGetWindow
2018-03-14 16:18:40 +08:00
oXg3n
b554a524a8
Fix HTML script tag in core/renderer to pass W3C validation (The type attribute is unnecessary for Javascript resources)
2018-03-08 15:38:29 +01:00
Clark Du
0783be2790
refator: remove jsdomError listener before returning window
2018-03-06 16:29:21 +08:00
Clark Du
d9d747c9a8
refator: only throw jsdomerror in window initialization
2018-03-06 16:14:34 +08:00
Clark Du
d6f22c904d
fix: throw jsdomError to avoid renderAndGetWindow hanging
2018-03-06 14:03:09 +08:00
Ricardo Gobbo de Souza
6f073d7093
fix: conflict old pr
2018-02-05 12:54:36 -02:00
Sébastien Chopin
0b1e54dc57
Merge branch 'dev' into config-pages-dir
2018-02-05 09:16:27 +01:00
Clark Du
a81af22d41
feature: add static.prefix
2018-02-04 00:54:42 +08:00
Ricardo Gobbo de Souza
536aab6380
Moved options to a new dir
block:
2018-02-03 14:04:15 -02:00
Ricardo Gobbo de Souza
483cd9ea29
feat: custom static directory
2018-02-03 09:54:16 -02:00
Diederik van den Burger
7bea248fe4
feat: added errorMiddleware hook. ( #2703 )
2018-01-27 18:42:30 +03:30
Clark Du
8b634c210d
feat: add noscript in head
2018-01-23 18:30:36 +08:00
Pooya Parsa
95c85bba62
minor improvements for #2608
2018-01-16 18:41:17 +03:30
Kouki Narumi
5ebf60f2a1
feat: external script support for CSP ( #2608 )
2018-01-16 18:40:10 +03:30
Pooya Parsa
10d1b5974c
style: format with prettier
2018-01-13 08:52:11 +03:30
Samuel Horwitz
6e9be715b2
Adding support for Content-Security-Policy script-src safe inline, for SSR state transfer
2018-01-10 01:36:34 -05:00
Pooya Parsa
9fc2bace44
feat: upgrade to launch-editor 2.0.0
2018-01-07 11:51:36 +03:30
Pooya Parsa
4e24ec7eba
feat: use launch-editor for open-in-editor functionality
2018-01-06 23:27:34 +03:30
Pooya Parsa
60714ecfc0
minor fixes
2018-01-05 02:03:46 +03:30
Pooya Parsa
42807fcdf9
perf: Use getPreloadFiles for HTTP2 push headers
2018-01-05 01:40:52 +03:30
Pooya Parsa
e54beeee1e
refactor: move renderer middleware into seperate modules
2018-01-04 21:06:47 +03:30
Pooya Parsa
96c3b4a15b
refactor: change _open endpoint to /__open-in-editor
...
upgrade @nuxtjs/youch to 4.0.0
ref: vuejs/vue-devtools#483
2018-01-04 20:44:48 +03:30
Pooya Parsa
9b8cbed512
perf: remove rollup build
...
Using native node 8.x for less transpilations
2017-12-12 13:12:29 +03:30
Pooya Parsa
65f2419052
coverage
2017-12-08 12:34:08 +03:30
Pooya Parsa
cac06d7067
fix(render): add _open middleware only for dev + debug
2017-12-08 12:22:15 +03:30
Clark Du
30714c989a
refactor: change settimeout to waitFor ( #2220 )
2017-11-24 11:39:45 +03:30
Clark Du
377416a7ef
refactor: eslint adjustments
2017-11-19 17:18:02 +03:30
Atinux
07eab4c643
feat: Handle body scripts from vue-meta
2017-11-06 13:33:19 +01:00
Sébastien Chopin
ad59f788dc
hook: Add render:route hook
2017-10-30 23:15:06 +01:00