Commit Graph

49 Commits

Author SHA1 Message Date
Pooya Parsa
6ee5d958a7 cleanups 2017-04-30 17:24:14 +04:30
Pooya Parsa
2e75f22a08 add options.ssr
This allows setting custom vue renderer options. including:
- shouldPreload(file, type)
- runInNewContext
- directives

https://ssr.vuejs.org/en/api.html#renderer-options
2017-04-30 17:10:04 +04:30
Pooya Parsa
87172100c7 [vue-loader] allow using builtin extractCSS functionality
This option is disabled by default and won't affect exiting users.
However users can easily enable this option using `nuxt.build.extractCSS`

Implementation is according to:
- https://github.com/vuejs/vue-loader/tree/master/docs/en/configurations
- https://ssr.vuejs.org/en/css.html
- https://github.com/vuejs/vue-hackernews-2.0/tree/master/build
2017-04-30 16:28:25 +04:30
Pooya Parsa
56c39bea88 fix tests 2017-04-30 02:39:40 +04:30
Pooya Parsa
750276b3f6 refactor client watch
Fixes duplicate READY message
2017-04-27 21:14:31 +04:30
Pooya Parsa
ac151a41f0 Basic vue-server-renderer/client-plugin integration 2017-04-27 15:50:43 +04:30
Sébastien Chopin
ec8291ea4c Fix lint style 2017-04-15 13:19:41 +02:00
Sebastien Chopin
b11a4d761b Add injectAs to work with external plugins 2017-04-10 18:44:08 +02:00
Sébastien Chopin
617999a60a Add manifest 2017-03-26 00:52:39 +01:00
Sébastien Chopin
3b635323a4 Add layout in __NUXT__ 2017-03-25 18:59:58 +01:00
Sébastien Chopin
1cefff8194 Add watchers option and url after build 2017-03-25 15:16:07 +01:00
Sébastien Chopin
c4962f09a9 Improve chokidar watch on middleware and store 2017-03-25 05:06:12 +01:00
Sébastien Chopin
7a34763277 Fix webpack building loop 2017-03-25 03:17:26 +01:00
Sébastien Chopin
4431dfa368 revert to no-cdn publicPath 2017-03-24 18:54:54 +01:00
Sébastien Chopin
3f4ea1064d Remove PostCompilePlugin 2017-03-24 16:51:16 +01:00
Sébastien Chopin
d4db5792a4 Improve webpack config
- Remove filenames.css
- Add FriendlyErrorsWebpackPlugin()
- Add sourceMaps for UglifyJS
- Minify CSS for server-rendered pages
- Add css-loader for imports
2017-03-24 01:28:04 +01:00
Sébastien Chopin
64f83b71c3 Vue 2.2 and styles included 2017-03-22 15:47:34 +01:00
Sébastien Chopin
1cd5c0d68b Merge branch 'master' into 0.10.0
# Conflicts:
#	lib/generate.js
#	lib/utils.js
2017-03-20 17:53:39 +01:00
Sébastien Chopin
a81862e77f Upgrade dependencies & lint 2017-03-20 17:52:35 +01:00
Pierre RAMBAUD
c99571e78e Typo fix, const must be renamed clientCompiler 2017-03-20 12:11:20 +01:00
Sébastien Chopin
0a595bd1c3 Merge remote-tracking branch 'origin/0.10.0' into 0.10.0
# Conflicts:
#	lib/generate.js
#	lib/utils.js
2017-03-16 18:54:37 +01:00
Sébastien Chopin
e8056f67eb Fix url starting with double slash 2017-03-16 18:52:38 +01:00
Alexandre Chopin
cd16c2f6d2 change generate.routeParams to generate.routes 2017-03-06 20:00:26 +01:00
Sébastien Chopin
8253f5e75b Add plugin ssr option & rename process.browser 2017-03-01 17:54:44 +01:00
Sébastien Chopin
6773c98d28 Remove build logs in dev 2017-02-28 17:32:12 +01:00
Alexandre Chopin
fd966485ee extendRoutes add resolve func as param for window 2017-02-23 11:02:15 +01:00
Sébastien Chopin
591ef50a06 Fix template not built 2017-02-21 18:22:57 +00:00
Sébastien Chopin
10c4b1550f Use HTML template + optimise cache control + gzip 2017-02-21 17:11:41 +00:00
Alexandre Chopin
f5300e4e67 fix extendRoutes for generate 2017-02-21 13:01:25 +01:00
Sébastien Chopin
7b3c62739c Remove conditional nuxtStatic middleware 2017-02-21 11:31:47 +00:00
Sébastien Chopin
9a2767ac90 Layout on afterEach 2017-02-20 22:11:34 +00:00
Sébastien Chopin
7d630bf5d9 Remove extra line 2017-02-20 18:59:15 +01:00
Sébastien Chopin
f5a6cf0569 Merge branch 'master' into 0.9.10
# Conflicts:
#	package.json
2017-02-18 10:57:12 +01:00
Sébastien Chopin
5b22564b10 Merge branch 'master' into 0.9.10 2017-02-18 10:55:36 +01:00
cj
721d2d63fa cleaner build/error outputs for terminal 2017-02-17 11:58:48 -06:00
cj
88dbe00b9e add options to build 2017-02-17 03:24:30 -06:00
Sébastien Chopin
376362ec39 Handle publicPath 2017-02-16 18:16:00 +01:00
Sébastien Chopin
4c53c6a669 start working on publicPath 2017-02-13 13:34:54 +01:00
Alexandre Chopin
c4dfa34212 fix optional route with index and order 2017-02-10 21:24:17 +01:00
Alexandre Chopin
8661c57e88 fix routes bug order 2017-02-09 01:18:29 +01:00
Alexandre Chopin
51da5569f8 fix route optional 2017-02-08 20:13:03 +01:00
Alexandre Chopin
e233c5def8 fix bug routes and add _.vue support (all) 2017-02-03 20:23:28 +01:00
Sébastien Chopin
17650c25e0 Middleware feature 🔥 2017-02-03 15:09:38 +01:00
Sébastien Chopin
423f52f35d Fix error component on dynamic route. 2017-01-27 23:10:02 +01:00
Sébastien Chopin
d9fe4b9612 Add scrollBehavior option 2017-01-26 15:56:47 +01:00
Sébastien Chopin
7552da1453 Add analyse option 2017-01-23 17:56:05 +01:00
Sébastien Chopin
e016b5d184 Exit with code 1 on build error 2017-01-20 18:55:30 +01:00
Sébastien Chopin
be6562f244 Add _name in router template 2017-01-19 16:25:55 +01:00
Sébastien Chopin
ef4065b350 Move build folder inside lib 2017-01-19 16:25:32 +01:00