Commit Graph

189 Commits

Author SHA1 Message Date
Kouki Narumi
5ebf60f2a1 feat: external script support for CSP (#2608) 2018-01-16 18:40:10 +03:30
Pooya Parsa
1075492d8b fix(module): default module options to empty object 2018-01-13 09:45:00 +03:30
Pooya Parsa
10d1b5974c style: format with prettier 2018-01-13 08:52:11 +03:30
Pooya Parsa
642cf4038a fix: regression with module.addVendor with array. fixes #2574. 2018-01-13 00:29:42 +03:30
Pooya Parsa
3c4b57e1f7 minor fixes 2018-01-11 23:13:34 +03:30
Pooya Parsa
f30ef38c70 fix(core): use options.extensions for resolvePath 2018-01-11 22:19:54 +03:30
Pooya Parsa
13166bcf78 misc: improve CLI errors 2018-01-11 19:41:50 +03:30
Pooya Parsa
58279166e2 eslint 2018-01-11 18:45:40 +03:30
Pooya Parsa
cef64cdbad improve error handling 2018-01-11 18:43:52 +03:30
Pooya Parsa
771945c789 use pretty error handler 2018-01-11 17:41:49 +03:30
Pooya Parsa
83236d82ce fix(module): always fill requiredModules 2018-01-11 17:02:31 +03:30
Pooya Parsa
e5ffbdfcd2 feat(module): improve error handling 2018-01-11 16:58:56 +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
Sébastien Chopin
8c04f5d8a6 cov: Ignore fallback conditions 2018-01-08 16:02:18 +01: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
05a7595701 improve error source maps 2018-01-05 12:50:08 +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
88b795a83b fix typo 2018-01-04 21:09:12 +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
49b43c4be3 improve modulesDir 2017-12-13 04:39:38 +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
06ae3868fe feat: add Nuxt.version 2017-11-30 14:00:49 +03:30
Dmitriy
967a442d5e resolve extra modules if nuxt linked (#2212) 2017-11-24 11:50:00 +03:30
Clark Du
4cc4eefcf8 refactor: change getMeta to async 2017-11-24 11:40:21 +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
Clark Du
73509c29ba refactor: remove alreadyRequired which is always true 2017-11-19 17:18:02 +03:30
Pooya Parsa
711e6a916e fix: add deprecated warn for tapables + simple backward compatibility 2017-11-07 17:18:46 +03:30
Atinux
07eab4c643 feat: Handle body scripts from vue-meta 2017-11-06 13:33:19 +01:00
Atinux
8e9f17c491 hooks: Await for modules:before hook 2017-10-31 12:45:32 +01:00
Atinux
7137f848a2 hooks: Handle hooks as object 2017-10-31 12:33:15 +01:00
Sébastien Chopin
daaa5bdd12 hook: Handle hook error and continue process 2017-10-30 23:15:35 +01:00
Sébastien Chopin
ad59f788dc hook: Add render:route hook 2017-10-30 23:15:06 +01:00
Sébastien Chopin
94ad5955e6 Hooks ready to be tested 2017-10-30 22:39:08 +01:00
Atinux
f72e620d7d fix: Remove console.log 2017-10-30 18:44:39 +01:00
Atinux
6648695015 refacto: Hooks 2017-10-30 18:41:22 +01:00
Atinux
83815de91b lint: Update linting rule on space-before-paren 2017-10-30 17:51:11 +01:00
Atinux
379d4f72d4 refacto: Refacto nuxt.build() to finish after webpack is done 2017-10-30 15:46:06 +01:00
Clark Du
327fabb663
fix: originalPositionFor return null when using babel-loader 2017-10-30 12:15:25 +08:00
Sébastien Chopin
262bffc35d minor: Add ENV into app.html template 2017-10-28 16:10:01 +02:00
Sebastien Chopin
e3974b4729 deprecation: Deprecate isServer, isClient and dev 2017-10-20 12:05:22 +02:00
Sebastien Chopin
7afa5e4c13 Fix serverMiddleware as express app without path 2017-10-20 10:52:07 +02:00
Clark Du
f8bc7e2383
refactor: renderToString now returns a Promise if no callback is passed 2017-10-16 11:29:09 +08:00
Pooya Parsa
f6d09642d7 fix renderAndGetWindow for SPA mode 2017-10-07 12:36:34 +03:30
Pooya Parsa
e289edc67e fix: show server errors in console 2017-09-12 02:57:51 +04:30
Pooya Parsa
b41fcbc789 feat: open in editor 2017-09-10 00:52:07 +04:30
Clark Du
eae828ccc6 remove condition due to 'this.options.dev' is always false
Signed-off-by: Clark Du <clark.duxin@gmail.com>
2017-09-08 12:10:57 +08:00
Pooya Parsa
9b8d3f11e7 fix: Handle 404 errors in SPA 2017-09-07 17:06:56 +04:30
Smadey
fd07d1ff38 Add "resourcesLoaded" plugin for Renderer
Provide the ability to modify resources before use.
2017-09-06 10:38:56 +08:00
Pooya Parsa
888b141a27 feat(renderer): allow disable router.base with prefix:false 2017-09-05 21:16:06 +04:30
Pooya Parsa
1fcf3e685e fix(meta): remove data-n-head-ssr 2017-09-05 13:34:59 +04:30
Sebastien Chopin
696ada09c4 Add resourceHints for SPA mode 2017-08-30 14:47:07 +02:00
Pooya Parsa
f933dd1f32 improve useMiddleware 2017-08-25 17:37:45 +04:30
Pooya Parsa
1ca5739a2f add router base to all middleware 2017-08-25 16:31:16 +04:30
Pooya Parsa
459363beea fix(renderer): resolve handler key as option for serverMiddleware
#1274
2017-08-23 02:44:44 +04:30
32c6d39358 fixes #1438 (#1439) 2017-08-22 18:27:11 +04:30
Sebastien Chopin
384aebb67d lint code 2017-08-21 17:31:12 +02:00
Sebastien Chopin
8f929c3929 Remove old way to handle meta tags 2017-08-21 11:39:01 +02:00
Sebastien Chopin
39f431efdf Use vue-meta for meta tags 2017-08-21 11:38:21 +02:00
Sébastien Chopin
e7b7f15166 Remove ssr only check 2017-08-19 15:31:26 +02:00
Pooya Parsa
a585d8cb35 imrpove CLI experience for OPEN url 2017-08-19 14:59:41 +04:30
Pooya Parsa
b2a92e185e SPA Resource Hints using meta
- W3 valid resource hints
- Supporting options.render.resourceHints
2017-08-19 14:20:45 +04:30
Pooya Parsa
a078a631eb fix meta typos 2017-08-19 13:16:58 +04:30
Pooya Parsa
866e31d1a6 Spa Meta 2017-08-18 20:35:01 +04:30
Pooya Parsa
d589bc5819 static ~> ssr-only 2017-08-18 17:16:03 +04:30
Pooya Parsa
136f066556 loadingIndicator support for SPA 2017-08-18 14:56:19 +04:30
Hana Shiro
db19b50a02 internals: improve options module (#1392) 2017-08-16 12:10:10 +04:30
Pooya Parsa
127155d61a workaround for es6-promise and vue-server-renderer 2017-08-10 16:16:00 +04:30
Pooya Parsa
d7cb08b746 improve server bundle size
explicitly excluding nuxt's node_modules optimizes bundle size in both normal usage and when using in test/linked/npx
2017-08-10 15:39:25 +04:30
Pooya Parsa
f23a6d34a4 [internal] use es6 exports
prevent rollup warning
2017-08-10 14:08:31 +04:30
Pooya Parsa
1c527c2db6 render.debug ~> debug
debug on build phase affects generated templates too
2017-08-06 02:18:43 +04:30
Pooya Parsa
9bb7d0331a update error 2017-08-05 23:50:26 +04:30
Pooya Parsa
c5578f8822 green OPEN message
nuxt branding
2017-08-05 23:25:18 +04:30
Pooya Parsa
d9c2c85f2a consitent production error pages 2017-08-05 14:54:12 +04:30
Pooya Parsa
8b63b64f54 feat: dynamic spa using serverMiddleware 2017-08-05 13:08:21 +04:30
Pooya Parsa
e9b66c2e41 feat: response json to curl clients on error 2017-08-05 12:23:06 +04:30
Pooya Parsa
c709b22612 update error tests 2017-08-05 12:17:30 +04:30
Pooya Parsa
25fdb28d41 more consistent errors 2017-08-05 12:13:10 +04:30
Pooya Parsa
e274db67a9 feat: json error response for application/json requests 2017-08-05 12:04:33 +04:30
Pooya Parsa
67bd208c73 better SSR error pages
full stack trace and source maps support
2017-08-05 05:28:26 +04:30
Sébastien Chopin
8e3bd5ffe6 Set back next 2017-07-30 19:48:48 +02:00
Sébastien Chopin
a17c551fca Don't use next anymore 2017-07-30 18:38:06 +02:00
Pooya Parsa
be4d8c5e13 internal refactors 2017-07-30 16:50:58 +04:30
Pooya Parsa
1417dae99b update tapable plugins 2017-07-30 16:17:50 +04:30
Clark Du
7d1cc2217a enable autoprefixer when no custom build.post is set 2017-07-25 15:10:31 +08:00
Hana Shiro
72a9beff64 Resolve requires from rootDir 2017-07-22 20:30:31 +08:00
Hana Shiro
1401434594 Resolve non-js package importing 2017-07-22 20:29:44 +08:00
Pooya Parsa
b5ca6b7975 feat: enhance tapables usage 2017-07-17 23:56:41 +04:30
Sebastien Chopin
eedd1137b6 Merge branch 'dev' of github.com:nuxt/nuxt.js into dev 2017-07-11 12:45:01 +02:00
Sebastien Chopin
f4d61a07b1 Remove unused option build.loaders 2017-07-11 12:44:58 +02:00
Pooya Parsa
a3be3cfe1b feat: mode option 2017-07-11 04:54:39 +04:30
Sébastien Chopin
2cc78c0446 Remove dynamic components 2017-07-09 23:06:17 +02:00
Sébastien Chopin
fc2c780dd0 Merge branch 'dev' of github.com:Atinux/nuxt.js into dev 2017-07-09 12:27:08 +02:00
Sébastien Chopin
270c490a9d Add generate.concurrency option 2017-07-09 12:00:08 +02:00
Pooya Parsa
2a76ff4d27 feat: build.devMiddleware and build.hotMiddleware options
Closes #1025
2017-07-09 14:10:37 +04:30